diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-01 07:36:28 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-01 07:36:28 +0000 |
commit | a3c533a716d95877ad2daf2326b5375a8fe844d3 (patch) | |
tree | 155d910d2ab7363559a5cc9d7218505bf002c961 /test/Transforms | |
parent | e9391fd9b52e93717b365bdd05c471101323a4df (diff) | |
download | llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.tar.gz llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.tar.bz2 llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.tar.xz |
For PR1297:
Update these test cases to use proper signatures for bswap which is now
and overloaded intrinsic. Its name must be of the form llvm.bswap.i32.i32
since both the parameter and the result or of type "iAny". Also, the
bit counting intrinsics changed to always return i32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/bswap-fold.ll | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Transforms/InstCombine/bswap-fold.ll b/test/Transforms/InstCombine/bswap-fold.ll index 0ee486ad1a..146a4495c9 100644 --- a/test/Transforms/InstCombine/bswap-fold.ll +++ b/test/Transforms/InstCombine/bswap-fold.ll @@ -2,25 +2,25 @@ ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep 'call.*bswap' bool %test1(ushort %tmp2) { - %tmp10 = call ushort %llvm.bswap.i16( ushort %tmp2 ) + %tmp10 = call ushort %llvm.bswap.i16.i16( ushort %tmp2 ) %tmp = seteq ushort %tmp10, 1 ret bool %tmp } bool %test2(uint %tmp) { - %tmp34 = tail call uint %llvm.bswap.i32( uint %tmp ) + %tmp34 = tail call uint %llvm.bswap.i32.i32( uint %tmp ) %tmp = seteq uint %tmp34, 1 ret bool %tmp } -declare uint %llvm.bswap.i32(uint) - bool %test3(ulong %tmp) { - %tmp34 = tail call ulong %llvm.bswap.i64( ulong %tmp ) + %tmp34 = tail call ulong %llvm.bswap.i64.i64( ulong %tmp ) %tmp = seteq ulong %tmp34, 1 ret bool %tmp } -declare ulong %llvm.bswap.i64(ulong) +declare ulong %llvm.bswap.i64.i64(ulong) + +declare ushort %llvm.bswap.i16.i16(ushort) -declare ushort %llvm.bswap.i16(ushort) +declare uint %llvm.bswap.i32.i32(uint) |