projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d741bcf
)
New testcases
author
Chris Lattner
<sabre@nondot.org>
Tue, 12 Aug 2003 19:10:50 +0000
(19:10 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 12 Aug 2003 19:10:50 +0000
(19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7781
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/or.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/or.ll
b/test/Transforms/InstCombine/or.ll
index 43ed83d6188c451604a0e98a57fc2dda1c87b3a9..4165c52a6a9d36c9b9e14c96eed5ca1673d470cd 100644
(file)
--- a/
test/Transforms/InstCombine/or.ll
+++ b/
test/Transforms/InstCombine/or.ll
@@
-100,3
+100,16
@@
bool %test15(uint %A, uint %B) {
ret bool %D
}
+int %test16(int %A) {
+ %B = and int %A, 1
+ %C = and int %A, -2 ; -2 = ~1
+ %D = or int %B, %C ; %D = and int %B, -1 == %B
+ ret int %D
+}
+
+int %test17(int %A) {
+ %B = and int %A, 1
+ %C = and int %A, 4
+ %D = or int %B, %C ; %D = and int %B, 5
+ ret int %D
+}