[llvm-commits] [llvm] r47531 - /llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll
Zhou Sheng
zhousheng00 at gmail.com
Sat Feb 23 02:59:53 PST 2008
Author: sheng
Date: Sat Feb 23 04:59:51 2008
New Revision: 47531
URL: http://llvm.org/viewvc/llvm-project?rev=47531&view=rev
Log:
Testcase for Revision 47478.
Added:
llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll
Added: llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll?rev=47531&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll (added)
+++ llvm/trunk/test/Transforms/InstCombine/2008-02-23-MulSub.ll Sat Feb 23 04:59:51 2008
@@ -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
+}
More information about the llvm-commits
mailing list