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:
a66e2fa
)
Add test for: (A|B)^B == A & (~B)
author
Chris Lattner
<sabre@nondot.org>
Mon, 10 Mar 2003 18:24:04 +0000
(18:24 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 10 Mar 2003 18:24:04 +0000
(18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5727
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 3358715d1f9c695310427e57aa9e402413305cfc..5523f87c4e6f671cb6bccc14a91565fb7e743a38 100644
(file)
--- a/
test/Transforms/InstCombine/or.ll
+++ b/
test/Transforms/InstCombine/or.ll
@@
-69,3
+69,9
@@
int %test12(int %A) { ; A | ~A == -1
%B = or int %A, %NotA
ret int %B
}
+
+uint %test13(uint %A) { ; (A|B)^B == A & (~B)
+ %t1 = or uint %A, 123
+ %r = xor uint %t1, 123
+ ret uint %r
+}