aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
commit348c61831624e93741f08edec256ba20b94ba7b4 (patch)
treee662b3ee5539d7594ab49eda3eae140424ce499d /test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
parent0013e453bf3652f7341a3ba1149ba173891c1c79 (diff)
downloadexternal_llvm-348c61831624e93741f08edec256ba20b94ba7b4.zip
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.gz
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.bz2
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll')
-rw-r--r--test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll b/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
index d71ba5a..c25cf21 100644
--- a/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
+++ b/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
@@ -1,10 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-void %img2buf(int %symbol_size_in_bytes, ushort* %ui16) {
- %tmp93 = load ushort* null ; <ushort> [#uses=1]
- %tmp99 = call ushort %llvm.bswap.i16( ushort %tmp93 ) ; <ushort> [#uses=1]
- store ushort %tmp99, ushort* %ui16
- ret void
+define void @img2buf(i32 %symbol_size_in_bytes, i16* %ui16) {
+ %tmp93 = load i16* null ; <i16> [#uses=1]
+ %tmp99 = call i16 @llvm.bswap.i16( i16 %tmp93 ) ; <i16> [#uses=1]
+ store i16 %tmp99, i16* %ui16
+ ret void
}
-declare ushort %llvm.bswap.i16(ushort)
+declare i16 @llvm.bswap.i16(i16)
+