diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
commit | ec9a35a6f9143cfa325e0413cc297c48f627973a (patch) | |
tree | c1b0621415acc20f94152c51174d53fae3dbc8cc /test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll | |
parent | ab3b77834c9232e4c13acb29afe1920b97c5a20b (diff) |
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll')
-rw-r--r-- | test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll b/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll index 1809d3ce91..8c48d4357b 100644 --- a/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll +++ b/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll @@ -1,7 +1,9 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep lshr +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep lshr ; Verify this is not turned into -1. -int %test(ubyte %amt) { - %B = lshr int -1, ubyte %amt - ret int %B +define i32 @test(i8 %amt) { + %shift.upgrd.1 = zext i8 %amt to i32 ; <i32> [#uses=1] + %B = lshr i32 -1, %shift.upgrd.1 ; <i32> [#uses=1] + ret i32 %B } + |