summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-01 07:36:28 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-01 07:36:28 +0000
commitc3d87685adf4896ac7f4573d24c9e7cf4ad26247 (patch)
tree82ea1722f24ed7eeb27ed6e3221e45f24bf16eee /llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll
parent6bba6c81430bb6577dfbd53b2ef36edd9dac1e37 (diff)
downloadbcm5719-llvm-c3d87685adf4896ac7f4573d24c9e7cf4ad26247.tar.gz
bcm5719-llvm-c3d87685adf4896ac7f4573d24c9e7cf4ad26247.zip
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. llvm-svn: 35548
Diffstat (limited to 'llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll')
-rw-r--r--llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll66
1 files changed, 33 insertions, 33 deletions
diff --git a/llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll b/llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll
index 014d261c521..db2e4b19697 100644
--- a/llvm/test/CodeGen/Generic/llvm-ct-intrinsics.ll
+++ b/llvm/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 ulong %llvm.ctpop.i64(ulong)
+declare uint %llvm.ctpop.i64(ulong)
declare uint %llvm.ctpop.i32(uint)
-declare ushort %llvm.ctpop.i16(ushort)
-declare ubyte %llvm.ctpop.i8(ubyte)
+declare uint %llvm.ctpop.i16(ushort)
+declare uint %llvm.ctpop.i8(ubyte)
void %ctpoptest(ubyte %A, ushort %B, uint %C, ulong %D,
- ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) {
- %a = call ubyte %llvm.ctpop.i8(ubyte %A)
- %b = call ushort %llvm.ctpop.i16(ushort %B)
+ uint *%AP, uint* %BP, uint* %CP, uint* %DP) {
+ %a = call uint %llvm.ctpop.i8(ubyte %A)
+ %b = call uint %llvm.ctpop.i16(ushort %B)
%c = call uint %llvm.ctpop.i32(uint %C)
- %d = call ulong %llvm.ctpop.i64(ulong %D)
+ %d = call uint %llvm.ctpop.i64(ulong %D)
- store ubyte %a, ubyte* %AP
- store ushort %b, ushort* %BP
- store uint %c, uint* %CP
- store ulong %d, ulong* %DP
+ store uint %a, uint* %AP
+ store uint %b, uint* %BP
+ store uint %c, uint* %CP
+ store uint %d, uint* %DP
ret void
}
-declare ulong %llvm.ctlz.i64(ulong)
+declare uint %llvm.ctlz.i64(ulong)
declare uint %llvm.ctlz.i32(uint)
-declare ushort %llvm.ctlz.i16(ushort)
-declare ubyte %llvm.ctlz.i8(ubyte)
+declare uint %llvm.ctlz.i16(ushort)
+declare uint %llvm.ctlz.i8(ubyte)
void %ctlztest(ubyte %A, ushort %B, uint %C, ulong %D,
- ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) {
- %a = call ubyte %llvm.ctlz.i8(ubyte %A)
- %b = call ushort %llvm.ctlz.i16(ushort %B)
+ uint *%AP, uint* %BP, uint* %CP, uint* %DP) {
+ %a = call uint %llvm.ctlz.i8(ubyte %A)
+ %b = call uint %llvm.ctlz.i16(ushort %B)
%c = call uint %llvm.ctlz.i32(uint %C)
- %d = call ulong %llvm.ctlz.i64(ulong %D)
+ %d = call uint %llvm.ctlz.i64(ulong %D)
- store ubyte %a, ubyte* %AP
- store ushort %b, ushort* %BP
- store uint %c, uint* %CP
- store ulong %d, ulong* %DP
+ store uint %a, uint* %AP
+ store uint %b, uint* %BP
+ store uint %c, uint* %CP
+ store uint %d, uint* %DP
ret void
}
-declare ulong %llvm.cttz.i64(ulong)
+declare uint %llvm.cttz.i64(ulong)
declare uint %llvm.cttz.i32(uint)
-declare ushort %llvm.cttz.i16(ushort)
-declare ubyte %llvm.cttz.i8(ubyte)
+declare uint %llvm.cttz.i16(ushort)
+declare uint %llvm.cttz.i8(ubyte)
void %cttztest(ubyte %A, ushort %B, uint %C, ulong %D,
- ubyte *%AP, ushort* %BP, uint* %CP, ulong* %DP) {
- %a = call ubyte %llvm.cttz.i8(ubyte %A)
- %b = call ushort %llvm.cttz.i16(ushort %B)
+ uint *%AP, uint* %BP, uint* %CP, uint* %DP) {
+ %a = call uint %llvm.cttz.i8(ubyte %A)
+ %b = call uint %llvm.cttz.i16(ushort %B)
%c = call uint %llvm.cttz.i32(uint %C)
- %d = call ulong %llvm.cttz.i64(ulong %D)
+ %d = call uint %llvm.cttz.i64(ulong %D)
- store ubyte %a, ubyte* %AP
- store ushort %b, ushort* %BP
- store uint %c, uint* %CP
- store ulong %d, ulong* %DP
+ store uint %a, uint* %AP
+ store uint %b, uint* %BP
+ store uint %c, uint* %CP
+ store uint %d, uint* %DP
ret void
}
OpenPOWER on IntegriCloud