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:
c6a200e
)
New testcases
author
Chris Lattner
<sabre@nondot.org>
Fri, 19 Sep 2003 15:33:46 +0000
(15:33 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 19 Sep 2003 15:33:46 +0000
(15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8603
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/add.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/add.ll
b/test/Transforms/InstCombine/add.ll
index afcef78ed1e08e7c2fd196dbbca06149bb0f8d74..7dcb2aef288a92ebea912b2e2747181f048472ee 100644
(file)
--- a/
test/Transforms/InstCombine/add.ll
+++ b/
test/Transforms/InstCombine/add.ll
@@
-93,3
+93,15
@@
uint %test14(uint %offset, uint %difference) {
ret uint %tmp.8
}
+ubyte %test15(ubyte %A) {
+ %B = add ubyte %A, 192 ; Does not effect result
+ %C = and ubyte %B, 16 ; Only one bit set
+ ret ubyte %C
+}
+
+ubyte %test16(ubyte %A) {
+ %B = add ubyte %A, 16 ; Turn this into a XOR
+ %C = and ubyte %B, 16 ; Only one bit set
+ ret ubyte %C
+}
+