aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/llvm-ct-intrinsics.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-02 20:38:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-02 20:38:10 +0000
commitd05b67dc647448ea4936c3ff91cfb42eb8b009bf (patch)
tree67e3145b43a21cb90ace98e05aca24e12aaaa0b2 /test/CodeGen/Generic/llvm-ct-intrinsics.ll
parent595a4e51d526fee6bf5ca4dc403230b2381bd709 (diff)
downloadexternal_llvm-d05b67dc647448ea4936c3ff91cfb42eb8b009bf.zip
external_llvm-d05b67dc647448ea4936c3ff91cfb42eb8b009bf.tar.gz
external_llvm-d05b67dc647448ea4936c3ff91cfb42eb8b009bf.tar.bz2
Run llvm-upgrade on this test and/or upgrade intrinsic function calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/llvm-ct-intrinsics.ll')
-rw-r--r--test/CodeGen/Generic/llvm-ct-intrinsics.ll96
1 files changed, 48 insertions, 48 deletions
diff --git a/test/CodeGen/Generic/llvm-ct-intrinsics.ll b/test/CodeGen/Generic/llvm-ct-intrinsics.ll
index 1897abe..014d261 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 long %llvm.ctpop(long)
-declare int %llvm.ctpop(int)
-declare short %llvm.ctpop(short)
-declare sbyte %llvm.ctpop(sbyte)
-
-void %ctpoptest(sbyte %A, short %B, int %C, long %D,
- sbyte *%AP, short* %BP, int* %CP, long* %DP) {
- %a = call sbyte %llvm.ctpop(sbyte %A)
- %b = call short %llvm.ctpop(short %B)
- %c = call int %llvm.ctpop(int %C)
- %d = call long %llvm.ctpop(long %D)
-
- store sbyte %a, sbyte* %AP
- store short %b, short* %BP
- store int %c, int* %CP
- store long %d, long* %DP
+declare ulong %llvm.ctpop.i64(ulong)
+declare uint %llvm.ctpop.i32(uint)
+declare ushort %llvm.ctpop.i16(ushort)
+declare ubyte %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)
+ %c = call uint %llvm.ctpop.i32(uint %C)
+ %d = call ulong %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
ret void
}
-declare long %llvm.ctlz(long)
-declare int %llvm.ctlz(int)
-declare short %llvm.ctlz(short)
-declare sbyte %llvm.ctlz(sbyte)
-
-void %ctlztest(sbyte %A, short %B, int %C, long %D,
- sbyte *%AP, short* %BP, int* %CP, long* %DP) {
- %a = call sbyte %llvm.ctlz(sbyte %A)
- %b = call short %llvm.ctlz(short %B)
- %c = call int %llvm.ctlz(int %C)
- %d = call long %llvm.ctlz(long %D)
-
- store sbyte %a, sbyte* %AP
- store short %b, short* %BP
- store int %c, int* %CP
- store long %d, long* %DP
+declare ulong %llvm.ctlz.i64(ulong)
+declare uint %llvm.ctlz.i32(uint)
+declare ushort %llvm.ctlz.i16(ushort)
+declare ubyte %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)
+ %c = call uint %llvm.ctlz.i32(uint %C)
+ %d = call ulong %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
ret void
}
-declare long %llvm.cttz(long)
-declare int %llvm.cttz(int)
-declare short %llvm.cttz(short)
-declare sbyte %llvm.cttz(sbyte)
-
-void %cttztest(sbyte %A, short %B, int %C, long %D,
- sbyte *%AP, short* %BP, int* %CP, long* %DP) {
- %a = call sbyte %llvm.cttz(sbyte %A)
- %b = call short %llvm.cttz(short %B)
- %c = call int %llvm.cttz(int %C)
- %d = call long %llvm.cttz(long %D)
-
- store sbyte %a, sbyte* %AP
- store short %b, short* %BP
- store int %c, int* %CP
- store long %d, long* %DP
+declare ulong %llvm.cttz.i64(ulong)
+declare uint %llvm.cttz.i32(uint)
+declare ushort %llvm.cttz.i16(ushort)
+declare ubyte %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)
+ %c = call uint %llvm.cttz.i32(uint %C)
+ %d = call ulong %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
ret void
}