aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2008-02-23 10:59:51 +0000
committerZhou Sheng <zhousheng00@gmail.com>2008-02-23 10:59:51 +0000
commitf65a0f7860bc9189c95a76cb6802d7ba54e61048 (patch)
tree4a1ae715528329fafc27f299e01b2cde61b1ee10 /test
parent249ded3fa8884f91fded869fb6e251b8aebb0376 (diff)
downloadexternal_llvm-f65a0f7860bc9189c95a76cb6802d7ba54e61048.zip
external_llvm-f65a0f7860bc9189c95a76cb6802d7ba54e61048.tar.gz
external_llvm-f65a0f7860bc9189c95a76cb6802d7ba54e61048.tar.bz2
Testcase for Revision 47478.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2008-02-23-MulSub.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-02-23-MulSub.ll b/test/Transforms/InstCombine/2008-02-23-MulSub.ll
new file mode 100644
index 0000000..21917ab
--- /dev/null
+++ b/test/Transforms/InstCombine/2008-02-23-MulSub.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as | opt -instcombine | llvm-dis | not grep mul
+
+define i26 @mul_283(i26 %a) nounwind {
+entry:
+ %_add = mul i26 %a, 2885 ; <i26> [#uses=1]
+ %_shl2 = mul i26 %a, 2884 ; <i26> [#uses=1]
+ %_sub = sub i26 %_add, %_shl2 ; <i26> [#uses=1]
+ ret i26 %_sub
+}