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/Feature | |
parent | e9391fd9b52e93717b365bdd05c471101323a4df (diff) | |
download | external_llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.zip external_llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.tar.gz external_llvm-a3c533a716d95877ad2daf2326b5375a8fe844d3.tar.bz2 |
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/Feature')
-rw-r--r-- | test/Feature/intrinsics.ll | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/Feature/intrinsics.ll b/test/Feature/intrinsics.ll index 1d1575d..d464726 100644 --- a/test/Feature/intrinsics.ll +++ b/test/Feature/intrinsics.ll @@ -8,20 +8,20 @@ declare bool %llvm.isunordered.f64(double,double) declare void %llvm.prefetch(sbyte*, uint, uint) -declare ubyte %llvm.ctpop.i8(ubyte) -declare ushort %llvm.ctpop.i16(ushort) +declare uint %llvm.ctpop.i8(ubyte) +declare uint %llvm.ctpop.i16(ushort) declare uint %llvm.ctpop.i32(uint) -declare ulong %llvm.ctpop.i64(ulong) +declare uint %llvm.ctpop.i64(ulong) -declare ubyte %llvm.cttz.i8(ubyte) -declare ushort %llvm.cttz.i16(ushort) +declare uint %llvm.cttz.i8(ubyte) +declare uint %llvm.cttz.i16(ushort) declare uint %llvm.cttz.i32(uint) -declare ulong %llvm.cttz.i64(ulong) +declare uint %llvm.cttz.i64(ulong) -declare ubyte %llvm.ctlz.i8(ubyte) -declare ushort %llvm.ctlz.i16(ushort) +declare uint %llvm.ctlz.i8(ubyte) +declare uint %llvm.ctlz.i16(ushort) declare uint %llvm.ctlz.i32(uint) -declare ulong %llvm.ctlz.i64(ulong) +declare uint %llvm.ctlz.i64(ulong) declare float %llvm.sqrt.f32(float) declare double %llvm.sqrt.f64(double) @@ -39,20 +39,20 @@ void %libm() { call float %llvm.sqrt.f32(float 5.0) call double %llvm.sqrt.f64(double 6.0) - call ubyte %llvm.ctpop.i8(ubyte 10) - call ushort %llvm.ctpop.i16(ushort 11) + call uint %llvm.ctpop.i8(ubyte 10) + call uint %llvm.ctpop.i16(ushort 11) call uint %llvm.ctpop.i32(uint 12) - call ulong %llvm.ctpop.i64(ulong 13) + call uint %llvm.ctpop.i64(ulong 13) - call ubyte %llvm.ctlz.i8(ubyte 14) - call ushort %llvm.ctlz.i16(ushort 15) + call uint %llvm.ctlz.i8(ubyte 14) + call uint %llvm.ctlz.i16(ushort 15) call uint %llvm.ctlz.i32(uint 16) - call ulong %llvm.ctlz.i64(ulong 17) + call uint %llvm.ctlz.i64(ulong 17) - call ubyte %llvm.cttz.i8(ubyte 18) - call ushort %llvm.cttz.i16(ushort 19) + call uint %llvm.cttz.i8(ubyte 18) + call uint %llvm.cttz.i16(ushort 19) call uint %llvm.cttz.i32(uint 20) - call ulong %llvm.cttz.i64(ulong 21) + call uint %llvm.cttz.i64(ulong 21) ret void } |