mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
7cd85b7492
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188340 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
362 B
LLVM
14 lines
362 B
LLVM
; 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
|
|
}
|