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:
64001d0
)
Test that xor/select are folded into a select with inverted operands.
author
Chris Lattner
<sabre@nondot.org>
Sun, 24 Apr 2005 07:28:53 +0000
(07:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 24 Apr 2005 07:28:53 +0000
(07:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21494
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 772c48058819ad9923bc083a9b2f4f510262187b..8b1e193e24bac3f17d426c72ba4c2e5b01de9bfb 100644
(file)
--- a/
test/Transforms/InstCombine/xor.ll
+++ b/
test/Transforms/InstCombine/xor.ll
@@
-141,4
+141,8
@@
void %test20(uint %A, uint %B) { ; The "swap idiom"
ret void
}
-
+int %test21(bool %C, int %A, int %B) {
+ %C2 = xor bool %C, true
+ %D = select bool %C2, int %A, int %B
+ ret int %D
+}