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:
3e3c805
)
Add some more tests for: (A <setcc1> B) logicalop (A <setcc2> B)
author
Chris Lattner
<sabre@nondot.org>
Wed, 13 Aug 2003 20:13:15 +0000
(20:13 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 13 Aug 2003 20:13:15 +0000
(20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7827
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/xor.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/xor.ll
b/test/Transforms/InstCombine/xor.ll
index 3707c5de3ae091909bba54065f9687494060ae22..0a33a12fd78daf7667520cfb41669efee363f093 100644
(file)
--- a/
test/Transforms/InstCombine/xor.ll
+++ b/
test/Transforms/InstCombine/xor.ll
@@
-84,3
+84,17
@@
bool %test12(ubyte %A) {
%c = setne ubyte %B, 0
ret bool %c
}
+
+bool %test13(ubyte %A, ubyte %B) {
+ %C = setlt ubyte %A, %B
+ %D = setgt ubyte %A, %B
+ %E = xor bool %C, %D ; E = setne %A, %B
+ ret bool %E
+}
+
+bool %test14(ubyte %A, ubyte %B) {
+ %C = seteq ubyte %A, %B
+ %D = setne ubyte %B, %A
+ %E = xor bool %C, %D ; E = true
+ ret bool %E
+}