diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-02-01 07:59:33 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-02-01 07:59:33 +0000 |
commit | 36146afb9676a81866acff882f76661891af3f3b (patch) | |
tree | 8adea7e92b56f2f4dcf06fe93d923c9caa461b58 /test/Transforms/InstCombine/shift.ll | |
parent | d5eb1cbee55b60dd7a5745f47c0b46a3a0b952e3 (diff) | |
download | llvm-36146afb9676a81866acff882f76661891af3f3b.tar.gz llvm-36146afb9676a81866acff882f76661891af3f3b.tar.bz2 llvm-36146afb9676a81866acff882f76661891af3f3b.tar.xz |
Revert r174152. The shift amount may overflow and in that case this transformation is illegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index 117a9060b4..41f8aa9ee8 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -745,23 +745,3 @@ define i32 @test62(i32 %x) { ; CHECK: @test62 ; CHECK: ashr exact i32 %x, 3 } - -; CHECK: @test63 -; CHECK: shl <4 x i32> <i32 1, i32 2, i32 4, i32 8>, %B -define <4 x i32> @test63(i32 %n) { -entry: - %K = insertelement <4 x i32> undef, i32 %n, i32 0 - %B = shufflevector <4 x i32> %K, <4 x i32> undef, <4 x i32> zeroinitializer - %A = add <4 x i32> %B, <i32 0, i32 1, i32 2, i32 3> - %T = shl <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %A - ret <4 x i32> %T -} - -; CHECK: @test64 -; CHECK: shl i32 524288, %n -define i32 @test64(i32 %n) { -entry: - %A = add i32 %n, 19 - %T = shl i32 1 , %A - ret i32 %T -} |