OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
955f331
)
New testcase
author
Chris Lattner
<sabre@nondot.org>
Tue, 28 Sep 2004 22:31:49 +0000
(22:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 28 Sep 2004 22:31:49 +0000
(22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16560
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
e4d5bb7
..
669540b
100644
(file)
--- a/
test/Transforms/InstCombine/or.ll
+++ b/
test/Transforms/InstCombine/or.ll
@@
-113,3
+113,18
@@
int %test17(int %A) {
%D = or int %B, %C ; %D = and int %B, 5
ret int %D
}
+
+bool %test18(int %A) {
+ %B = setge int %A, 100
+ %C = setlt int %A, 50
+ %D = or bool %B, %C ;; (A-50) >u 50
+ ret bool %D
+}
+
+bool %test19(int %A) {
+ %B = seteq int %A, 50
+ %C = seteq int %A, 51
+ %D = or bool %B, %C ;; (A-50) < 2
+ ret bool %D
+}
+