blob: d36e678c6048844250851acb99c693d90063c2d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; RUN: llc < %s -mcpu=generic -march=x86-64 -asm-verbose=false | FileCheck %s
define zeroext i1 @test0(i64 %x) nounwind {
; CHECK-LABEL: test0:
; CHECK-NEXT: incq %[[X:rdi|rcx]]
; CHECK-NEXT: cmpq $1, %[[X]]
; CHECK-NEXT: seta %al
; CHECK-NEXT: ret
%cmp1 = icmp ne i64 %x, -1
%not.cmp = icmp ne i64 %x, 0
%.cmp1 = and i1 %cmp1, %not.cmp
ret i1 %.cmp1
}
|