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:
bdf6984
)
New testcase
author
Chris Lattner
<sabre@nondot.org>
Fri, 8 Oct 2004 03:41:59 +0000
(
03:41
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 8 Oct 2004 03:41:59 +0000
(
03:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16833
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 80f7402af9dcac9b3a7dd29708cfcb2f6830b898..6359dde0bf2123765e8ff2673a3009c5a419ad2e 100644
(file)
--- a/
test/Transforms/InstCombine/add.ll
+++ b/
test/Transforms/InstCombine/add.ll
@@
-163,3
+163,9
@@
endif:
ret int %tmp.4
}
+int %test24(int %A) {
+ %B = add int %A, 1
+ %C = shl int %B, ubyte 1
+ %D = sub int %C, 2
+ ret int %D ;; A << 1
+}