diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2008-02-23 10:59:51 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2008-02-23 10:59:51 +0000 |
commit | aae582ba9967a1b51c28b6b64c2dc79fe909e44d (patch) | |
tree | 5525a0a9330193f02e9141d1f9e3bdce32a0b0bb | |
parent | 401675b0def4c0e0b1aa65fc28baf2f736b7a32c (diff) | |
download | bcm5719-llvm-aae582ba9967a1b51c28b6b64c2dc79fe909e44d.tar.gz bcm5719-llvm-aae582ba9967a1b51c28b6b64c2dc79fe909e44d.zip |
Testcase for Revision 47478.
llvm-svn: 47531
-rw-r--r-- | llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll b/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll new file mode 100644 index 00000000000..21917ab5cf4 --- /dev/null +++ b/llvm/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 +} |