diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-09 01:12:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-09 01:12:41 +0000 |
| commit | 9b6a1789e5f9d23b648d0c0ac07b38758a954cd7 (patch) | |
| tree | 7bb86d844dcc9818adc58d17efe0a0f08fdcb568 /llvm/test/Transforms/InstCombine/crash.ll | |
| parent | be2f0b2b7b833f789698f0c2d7d91bfa0607c0bb (diff) | |
| download | bcm5719-llvm-9b6a1789e5f9d23b648d0c0ac07b38758a954cd7.tar.gz bcm5719-llvm-9b6a1789e5f9d23b648d0c0ac07b38758a954cd7.zip | |
fix PR6193, only considering sign extensions *from i1* for this
xform.
llvm-svn: 95642
Diffstat (limited to 'llvm/test/Transforms/InstCombine/crash.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/crash.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/crash.ll b/llvm/test/Transforms/InstCombine/crash.ll index a4e6a62d9e6..2faa5392d4b 100644 --- a/llvm/test/Transforms/InstCombine/crash.ll +++ b/llvm/test/Transforms/InstCombine/crash.ll @@ -226,3 +226,14 @@ define void @test10a() { ret void } + +; PR6193 +define i32 @test11(i32 %aMaskWidth, i8 %aStride) nounwind { +entry: + %conv41 = sext i8 %aStride to i32 + %neg = xor i32 %conv41, -1 + %and42 = and i32 %aMaskWidth, %neg + %and47 = and i32 130, %conv41 + %or = or i32 %and42, %and47 + ret i32 %or +} |

