Mercurial > hg > CbC > CbC_llvm
annotate test/CodeGen/X86/setcc-sentinals.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | 95c75e76d11b |
children |
rev | line source |
---|---|
0 | 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 } |