llvm.org GIT mirror llvm / 0a6ee6d test / CodeGen / X86 / cmp0.ll
0a6ee6d

Tree @0a6ee6d (Download .tar.gz)

cmp0.ll @0a6ee6draw · history · blame

1
2
3
4
5
6
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
}