projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make InstCombiner::FoldAndOfICmps create a ConstantRange that's the
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
and2.ll
diff --git
a/test/Transforms/InstCombine/and2.ll
b/test/Transforms/InstCombine/and2.ll
index d898ea3b037a863a360620570cb0f9d2742e8887..a8881522eac4b307d03e84b9acbb16fdff4e8f33 100644
(file)
--- a/
test/Transforms/InstCombine/and2.ll
+++ b/
test/Transforms/InstCombine/and2.ll
@@
-26,3
+26,12
@@
define i32 @test3(i32 %X, i32 %Y) {
; CHECK-NEXT: and i32 %X, %Y
; CHECK-NEXT: ret
}
+
+define i1 @test4(i32 %X) {
+ %a = icmp ult i32 %X, 31
+ %b = icmp slt i32 %X, 0
+ %c = and i1 %a, %b
+ ret i1 %c
+; CHECK: @test4
+; CHECK-NEXT: ret i1 false
+}