projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do (A == C1 || A == C2) -> (A & ~(C1 ^ C2)) == C1 rather than (A == C1 || A == C2...
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
load-cmp.ll
diff --git
a/test/Transforms/InstCombine/load-cmp.ll
b/test/Transforms/InstCombine/load-cmp.ll
index 0bd9eb52191a7e3e49df0755e8b163513c23ede1..fe1bf1517539b050d3ddc7af2e102a7844d2a189 100644
(file)
--- a/
test/Transforms/InstCombine/load-cmp.ll
+++ b/
test/Transforms/InstCombine/load-cmp.ll
@@
-148,8
+148,8
@@
define i1 @test8(i32 %X) {
%S = icmp eq i16 %R, 0
ret i1 %S
; CHECK-LABEL: @test8(
-; CHECK-NEXT:
and i32 %X, -2
-; CHECK-NEXT: icmp eq i32 {{.*}},
8
+; CHECK-NEXT:
or i32 %X, 1
+; CHECK-NEXT: icmp eq i32 {{.*}},
9
; CHECK-NEXT: ret i1
}