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:
f61641f
)
Add a generalization of the previous case
author
Chris Lattner
<sabre@nondot.org>
Tue, 4 Nov 2003 23:36:50 +0000
(23:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 4 Nov 2003 23:36:50 +0000
(23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9707
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 0e6550c23337da4ef04e4d513a8a2bf106c30a17..0cbd1320d36cc02fab58664c69d4b02afdeb0813 100644
(file)
--- a/
test/Transforms/InstCombine/xor.ll
+++ b/
test/Transforms/InstCombine/xor.ll
@@
-104,3
+104,9
@@
uint %test15(uint %A) { ; ~(X-1) == -X
%C = xor uint %B, 4294967295
ret uint %C
}
+
+uint %test16(uint %A) { ; ~(X+c) == (-c-1)-X
+ %B = add uint %A, 123 ; A generalization of the previous case
+ %C = xor uint %B, 4294967295
+ ret uint %C
+}