comparison test/CodeGen/X86/setcc-sentinals.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; RUN: llc < %s -mcpu=generic -march=x86-64 -asm-verbose=false | FileCheck %s
2
3 define zeroext i1 @test0(i64 %x) nounwind {
4 ; CHECK-LABEL: test0:
5 ; CHECK-NEXT: incq %[[X:rdi|rcx]]
6 ; CHECK-NEXT: cmpq $1, %[[X]]
7 ; CHECK-NEXT: seta %al
8 ; CHECK-NEXT: ret
9 %cmp1 = icmp ne i64 %x, -1
10 %not.cmp = icmp ne i64 %x, 0
11 %.cmp1 = and i1 %cmp1, %not.cmp
12 ret i1 %.cmp1
13 }