repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
X86
/
long-setcc.ll
blob
9436891e9ccb2044bdd6d6cd2d433c4806adb62d
1
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
2
3
define i1 @t1(i64 %x) nounwind {
4
%B = icmp slt i64 %x, 0
5
ret i1 %B
6
}
7
8
; CHECK: t1
9
; CHECK: shrl
10
; CHECK-NOT: shrl
11
; CHECK: ret
12
13
define i1 @t2(i64 %x) nounwind {
14
%tmp = icmp ult i64 %x, 4294967296
15
ret i1 %tmp
16
}
17
18
; CHECK: t2
19
; CHECK: cmp
20
; CHECK-NOT: cmp
21
; CHECK: ret
22
23
define i1 @t3(i32 %x) nounwind {
24
%tmp = icmp ugt i32 %x, -1
25
ret i1 %tmp
26
}
27
28
; CHECK: t3
29
; CHECK: xor
30
; CHECK-NOT: xor
31
; CHECK: ret