diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 00:51:15 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 00:51:15 +0000 |
commit | 86189a446032240013f08b5172590726572188cc (patch) | |
tree | dff4eee435c3175f0ba9f38b6800e542b34f2340 /test/CodeGen/Generic/llvm-ct-intrinsics.ll | |
parent | 1e70bb666000f60ea373dcf2c85bfa4df5c90daa (diff) | |
download | llvm-86189a446032240013f08b5172590726572188cc.tar.gz llvm-86189a446032240013f08b5172590726572188cc.tar.bz2 llvm-86189a446032240013f08b5172590726572188cc.tar.xz |
Revert the name changes for llvm.bswap to allow (and test) llvm-upgrade of
this intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/llvm-ct-intrinsics.ll')
-rw-r--r-- | test/CodeGen/Generic/llvm-ct-intrinsics.ll | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/CodeGen/Generic/llvm-ct-intrinsics.ll b/test/CodeGen/Generic/llvm-ct-intrinsics.ll index db2e4b1969..014d261c52 100644 --- a/test/CodeGen/Generic/llvm-ct-intrinsics.ll +++ b/test/CodeGen/Generic/llvm-ct-intrinsics.ll @@ -1,59 +1,59 @@ ; Make sure this testcase is supported by all code generators ; RUN: llvm-upgrade < %s | llvm-as | llc -declare uint %llvm.ctpop.i64(ulong) +declare ulong %llvm.ctpop.i64(ulong) declare uint %llvm.ctpop.i32(uint) -declare uint %llvm.ctpop.i16(ushort) -declare uint %llvm.ctpop.i8(ubyte) +declare ushort %llvm.ctpop.i16(ushort) +declare ubyte %llvm.ctpop.i8(ubyte) void %ctpoptest(ubyte %A, ushort %B, uint %C, ulong %D, - uint *%AP, uint* %BP, uint* %CP, uint* %DP) { - %a = call uint %llvm.ctpop.i8(ubyte %A) - %b = call uint %llvm.ctpop.i16(ushort %B) + ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) { + %a = call ubyte %llvm.ctpop.i8(ubyte %A) + %b = call ushort %llvm.ctpop.i16(ushort %B) %c = call uint %llvm.ctpop.i32(uint %C) - %d = call uint %llvm.ctpop.i64(ulong %D) + %d = call ulong %llvm.ctpop.i64(ulong %D) - store uint %a, uint* %AP - store uint %b, uint* %BP - store uint %c, uint* %CP - store uint %d, uint* %DP + store ubyte %a, ubyte* %AP + store ushort %b, ushort* %BP + store uint %c, uint* %CP + store ulong %d, ulong* %DP ret void } -declare uint %llvm.ctlz.i64(ulong) +declare ulong %llvm.ctlz.i64(ulong) declare uint %llvm.ctlz.i32(uint) -declare uint %llvm.ctlz.i16(ushort) -declare uint %llvm.ctlz.i8(ubyte) +declare ushort %llvm.ctlz.i16(ushort) +declare ubyte %llvm.ctlz.i8(ubyte) void %ctlztest(ubyte %A, ushort %B, uint %C, ulong %D, - uint *%AP, uint* %BP, uint* %CP, uint* %DP) { - %a = call uint %llvm.ctlz.i8(ubyte %A) - %b = call uint %llvm.ctlz.i16(ushort %B) + ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) { + %a = call ubyte %llvm.ctlz.i8(ubyte %A) + %b = call ushort %llvm.ctlz.i16(ushort %B) %c = call uint %llvm.ctlz.i32(uint %C) - %d = call uint %llvm.ctlz.i64(ulong %D) + %d = call ulong %llvm.ctlz.i64(ulong %D) - store uint %a, uint* %AP - store uint %b, uint* %BP - store uint %c, uint* %CP - store uint %d, uint* %DP + store ubyte %a, ubyte* %AP + store ushort %b, ushort* %BP + store uint %c, uint* %CP + store ulong %d, ulong* %DP ret void } -declare uint %llvm.cttz.i64(ulong) +declare ulong %llvm.cttz.i64(ulong) declare uint %llvm.cttz.i32(uint) -declare uint %llvm.cttz.i16(ushort) -declare uint %llvm.cttz.i8(ubyte) +declare ushort %llvm.cttz.i16(ushort) +declare ubyte %llvm.cttz.i8(ubyte) void %cttztest(ubyte %A, ushort %B, uint %C, ulong %D, - uint *%AP, uint* %BP, uint* %CP, uint* %DP) { - %a = call uint %llvm.cttz.i8(ubyte %A) - %b = call uint %llvm.cttz.i16(ushort %B) + ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) { + %a = call ubyte %llvm.cttz.i8(ubyte %A) + %b = call ushort %llvm.cttz.i16(ushort %B) %c = call uint %llvm.cttz.i32(uint %C) - %d = call uint %llvm.cttz.i64(ulong %D) + %d = call ulong %llvm.cttz.i64(ulong %D) - store uint %a, uint* %AP - store uint %b, uint* %BP - store uint %c, uint* %CP - store uint %d, uint* %DP + store ubyte %a, ubyte* %AP + store ushort %b, ushort* %BP + store uint %c, uint* %CP + store ulong %d, ulong* %DP ret void } |