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/2004-02-23-ShiftShiftOverflow.ll | |
parent | ab3b77834c9232e4c13acb29afe1920b97c5a20b (diff) | |
download | llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2 llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.xz |
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/2004-02-23-ShiftShiftOverflow.ll')
-rw-r--r-- | test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll b/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll index 85095bf005..3a4b66157d 100644 --- a/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll +++ b/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll @@ -1,15 +1,15 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep 34 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 34 -int %test(int %X) { - ; Do not fold into shr X, 34, as this uses undefined behavior! - %Y = shr int %X, ubyte 17 - %Z = shr int %Y, ubyte 17 - ret int %Z +define i32 @test(i32 %X) { + ; Do not fold into shr X, 34, as this uses undefined behavior! + %Y = ashr i32 %X, 17 ; <i32> [#uses=1] + %Z = ashr i32 %Y, 17 ; <i32> [#uses=1] + ret i32 %Z } -int %test2(int %X) { - ; Do not fold into shl X, 34, as this uses undefined behavior! - %Y = shl int %X, ubyte 17 - %Z = shl int %Y, ubyte 17 - ret int %Z +define i32 @test2(i32 %X) { + ; Do not fold into shl X, 34, as this uses undefined behavior! + %Y = shl i32 %X, 17 ; <i32> [#uses=1] + %Z = shl i32 %Y, 17 ; <i32> [#uses=1] + ret i32 %Z } |