diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-04-14 01:11:51 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-04-14 01:11:51 +0000 |
commit | 7e07d6fb69bf52b45e1a0f790135bd4746d70194 (patch) | |
tree | 1bcc827ee9abb95d2b51456cf3e9cca225b7e8fb /llvm/test/CodeGen/X86/anyext.ll | |
parent | 3563aa6520a7adc67d5a79917bef9a9ae1ccb111 (diff) | |
download | bcm5719-llvm-7e07d6fb69bf52b45e1a0f790135bd4746d70194.tar.gz bcm5719-llvm-7e07d6fb69bf52b45e1a0f790135bd4746d70194.zip |
Have the X86 back-end emit the alias instead of what's being aliased. In most
cases, it's much nicer and more informative reading the alias.
llvm-svn: 129497
Diffstat (limited to 'llvm/test/CodeGen/X86/anyext.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/anyext.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/anyext.ll b/llvm/test/CodeGen/X86/anyext.ll index 106fe83661b..32a48fbedca 100644 --- a/llvm/test/CodeGen/X86/anyext.ll +++ b/llvm/test/CodeGen/X86/anyext.ll @@ -1,8 +1,10 @@ -; RUN: llc < %s -march=x86-64 | grep movzbl | count 2 +; RUN: llc < %s -march=x86-64 | FileCheck %s -; Use movzbl to avoid partial-register updates. +; Use movzbl (aliased as movzx) to avoid partial-register updates. define i32 @foo(i32 %p, i8 zeroext %x) nounwind { +; CHECK: movzx %dil, %eax +; CHECK: movzx %al, %eax %q = trunc i32 %p to i8 %r = udiv i8 %q, %x %s = zext i8 %r to i32 |