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:
f5b1d3d
)
Add new test for inverting branches
author
Chris Lattner
<sabre@nondot.org>
Wed, 4 Jun 2003 04:37:46 +0000
(
04:37
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 4 Jun 2003 04:37:46 +0000
(
04:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6598
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 f4f360df72a6224f2c4ee7197a0de66e550992e2..e01bb11bf580472238a890556280c1f82bfac213 100644
(file)
--- a/
test/Transforms/InstCombine/or.ll
+++ b/
test/Transforms/InstCombine/or.ll
@@
-105,3
+105,13
@@
ubyte %test17(ubyte %A, ubyte %B) { ; Test that (A|c1)|(B|c2) == (A|B)|(c1|c2)
%E = or ubyte %C, %D
ret ubyte %E
}
+
+ubyte %test18(bool %c) {
+ %d = xor bool %c, true ; invert the condition
+ br bool %d, label %True, label %False
+True:
+ ret ubyte 1
+False:
+ ret ubyte 3
+}
+