diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 01:08:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 01:08:02 +0000 |
commit | 2b35c154876597834ae86970067647938e00a976 (patch) | |
tree | 4b881f385cb7697f8f9857205cb8c70450ba4807 | |
parent | dc1966e6bac9d323e18db2e18d955885e0edd702 (diff) | |
download | external_llvm-2b35c154876597834ae86970067647938e00a976.zip external_llvm-2b35c154876597834ae86970067647938e00a976.tar.gz external_llvm-2b35c154876597834ae86970067647938e00a976.tar.bz2 |
Let llvm-upgrade upgrade bswap intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35568 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/bswap-load-store.ll | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll b/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll index 1da6dbf..d71ba5a 100644 --- a/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll +++ b/test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll @@ -2,9 +2,9 @@ void %img2buf(int %symbol_size_in_bytes, ushort* %ui16) { %tmp93 = load ushort* null ; <ushort> [#uses=1] - %tmp99 = call ushort %llvm.bswap.i16.i16( ushort %tmp93 ) ; <ushort> [#uses=1] + %tmp99 = call ushort %llvm.bswap.i16( ushort %tmp93 ) ; <ushort> [#uses=1] store ushort %tmp99, ushort* %ui16 ret void } -declare ushort %llvm.bswap.i16.i16(ushort) +declare ushort %llvm.bswap.i16(ushort) diff --git a/test/CodeGen/PowerPC/bswap-load-store.ll b/test/CodeGen/PowerPC/bswap-load-store.ll index 664a2aa..853abc4 100644 --- a/test/CodeGen/PowerPC/bswap-load-store.ll +++ b/test/CodeGen/PowerPC/bswap-load-store.ll @@ -8,7 +8,7 @@ void %STWBRX(uint %i, sbyte* %ptr, int %off) { %tmp1 = getelementptr sbyte* %ptr, int %off %tmp1 = cast sbyte* %tmp1 to uint* - %tmp13 = tail call uint %llvm.bswap.i32.i32(uint %i) + %tmp13 = tail call uint %llvm.bswap.i32(uint %i) store uint %tmp13, uint* %tmp1 ret void } @@ -17,14 +17,14 @@ uint %LWBRX(sbyte* %ptr, int %off) { %tmp1 = getelementptr sbyte* %ptr, int %off %tmp1 = cast sbyte* %tmp1 to uint* %tmp = load uint* %tmp1 - %tmp14 = tail call uint %llvm.bswap.i32.i32( uint %tmp ) + %tmp14 = tail call uint %llvm.bswap.i32( uint %tmp ) ret uint %tmp14 } void %STHBRX(ushort %s, sbyte* %ptr, int %off) { %tmp1 = getelementptr sbyte* %ptr, int %off %tmp1 = cast sbyte* %tmp1 to ushort* - %tmp5 = call ushort %llvm.bswap.i16.i16( ushort %s ) + %tmp5 = call ushort %llvm.bswap.i16( ushort %s ) store ushort %tmp5, ushort* %tmp1 ret void } @@ -33,10 +33,10 @@ ushort %LHBRX(sbyte* %ptr, int %off) { %tmp1 = getelementptr sbyte* %ptr, int %off %tmp1 = cast sbyte* %tmp1 to ushort* %tmp = load ushort* %tmp1 - %tmp6 = call ushort %llvm.bswap.i16.i16(ushort %tmp) + %tmp6 = call ushort %llvm.bswap.i16(ushort %tmp) ret ushort %tmp6 } -declare uint %llvm.bswap.i32.i32(uint) +declare uint %llvm.bswap.i32(uint) -declare ushort %llvm.bswap.i16.i16(ushort) +declare ushort %llvm.bswap.i16(ushort) |