llvm-6502/test/CodeGen/X86/cmp0.ll
Dan Gohman 11f7bfbb83 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
2007-09-17 14:35:24 +00:00

8 lines
146 B
LLVM

; 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
}