diff options
author | Dan Gohman <gohman@apple.com> | 2007-09-17 14:35:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-09-17 14:35:24 +0000 |
commit | 11f7bfbb834e42cd53a81a84a1dfc118ae17c9c5 (patch) | |
tree | e8cdd846b46e06c5cd4b3a49f7eddc2424a846e4 /test | |
parent | cdb6d929d0d2d2399a66bc7eb391934a10a752ed (diff) | |
download | external_llvm-11f7bfbb834e42cd53a81a84a1dfc118ae17c9c5.zip external_llvm-11f7bfbb834e42cd53a81a84a1dfc118ae17c9c5.tar.gz external_llvm-11f7bfbb834e42cd53a81a84a1dfc118ae17c9c5.tar.bz2 |
Use "test reg,reg" in place of "cmp reg,0" for 64-bit operands. This was
previously only done for 32-bit and smaller operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/cmp0.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/cmp0.ll b/test/CodeGen/X86/cmp0.ll new file mode 100644 index 0000000..f66f90c --- /dev/null +++ b/test/CodeGen/X86/cmp0.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | llc -march=x86-64 | grep -v cmp + +define i64 @foo(i64 %x) { + %t = icmp eq i64 %x, 0 + %r = zext i1 %t to i64 + ret i64 %r +} |