Testcase for Revision 47478.
authorZhou Sheng <zhousheng00@gmail.com>
Sat, 23 Feb 2008 10:59:51 +0000 (10:59 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Sat, 23 Feb 2008 10:59:51 +0000 (10:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47531 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2008-02-23-MulSub.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2008-02-23-MulSub.ll b/test/Transforms/InstCombine/2008-02-23-MulSub.ll
new file mode 100644 (file)
index 0000000..21917ab
--- /dev/null
@@ -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
+}