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:
615cdb9
)
Test that demorgan's law is instcombined successfully
author
Chris Lattner
<sabre@nondot.org>
Fri, 23 Aug 2002 18:31:18 +0000
(18:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 23 Aug 2002 18:31:18 +0000
(18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3494
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/not.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/not.ll
b/test/Transforms/InstCombine/not.ll
index 8bc858664999f3ddd0a1c88acccbe1ac9bdcbe5f..57560d61d6d5bfee73ffba229ce06feae9e5839d 100644
(file)
--- a/
test/Transforms/InstCombine/not.ll
+++ b/
test/Transforms/InstCombine/not.ll
@@
-19,3
+19,13
@@
bool %test2(int %A, int %B) {
%Ret = xor bool %cond, true
ret bool %Ret
}
+
+
+; Test that demorgans law can be instcombined
+int %test3(int %A, int %B) {
+ %a = xor int %A, -1
+ %b = xor int %B, -1
+ %c = and int %a, %b
+ %d = xor int %c, -1
+ ret int %d
+}