diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-11 07:53:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-11 07:53:15 +0000 |
commit | 8af304ab3b28eeaf968b85d54a2cdfadcdba6683 (patch) | |
tree | 9d478f579ba3d3d7677b277081edc2a8e54f9eff /test/Transforms | |
parent | f7a60d28a1160e314d577847b3e7349235293b7c (diff) | |
download | external_llvm-8af304ab3b28eeaf968b85d54a2cdfadcdba6683.zip external_llvm-8af304ab3b28eeaf968b85d54a2cdfadcdba6683.tar.gz external_llvm-8af304ab3b28eeaf968b85d54a2cdfadcdba6683.tar.bz2 |
implement rdar://7293527, a trivial instcombine that llvm-gcc
gets but clang doesn't, because it is implemented in GCC's
fold routine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/mul.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index 7d8593a..e127efb 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -88,3 +88,11 @@ define <16 x i8> @test14(<16 x i8> %a) { %b = mul <16 x i8> %a, zeroinitializer ret <16 x i8> %b } + +; rdar://7293527 +define i32 @test15(i32 %A, i32 %B) { +entry: + %shl = shl i32 1, %B + %m = mul i32 %shl, %A + ret i32 %m +} |