Upgrade these tests for the current intrinsic prototypes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-04-14 18:19:18 +00:00
parent 0a6ee6d131
commit 63f7ba085f
2 changed files with 24 additions and 24 deletions

View File

@ -6,19 +6,19 @@
target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
target triple = "spu"
declare i32 @llvm.ctpop.i8(i8)
declare i32 @llvm.ctpop.i16(i16)
declare i8 @llvm.ctpop.i8(i8)
declare i16 @llvm.ctpop.i16(i16)
declare i32 @llvm.ctpop.i32(i32)
define i32 @test_i8(i8 %X) {
call i32 @llvm.ctpop.i8(i8 %X)
%Y = bitcast i32 %1 to i32
call i8 @llvm.ctpop.i8(i8 %X)
%Y = zext i8 %1 to i32
ret i32 %Y
}
define i32 @test_i16(i16 %X) {
call i32 @llvm.ctpop.i16(i16 %X)
%Y = bitcast i32 %1 to i32
call i16 @llvm.ctpop.i16(i16 %X)
%Y = zext i16 %1 to i32
ret i32 %Y
}

View File

@ -8,29 +8,29 @@ declare i1 @llvm.isunordered.f64(double, double)
declare void @llvm.prefetch(i8*, i32, i32)
declare i32 @llvm.ctpop.i8(i8)
declare i8 @llvm.ctpop.i8(i8)
declare i32 @llvm.ctpop.i16(i16)
declare i16 @llvm.ctpop.i16(i16)
declare i32 @llvm.ctpop.i32(i32)
declare i32 @llvm.ctpop.i64(i64)
declare i64 @llvm.ctpop.i64(i64)
declare i32 @llvm.cttz.i8(i8)
declare i8 @llvm.cttz.i8(i8)
declare i32 @llvm.cttz.i16(i16)
declare i16 @llvm.cttz.i16(i16)
declare i32 @llvm.cttz.i32(i32)
declare i32 @llvm.cttz.i64(i64)
declare i64 @llvm.cttz.i64(i64)
declare i32 @llvm.ctlz.i8(i8)
declare i8 @llvm.ctlz.i8(i8)
declare i32 @llvm.ctlz.i16(i16)
declare i16 @llvm.ctlz.i16(i16)
declare i32 @llvm.ctlz.i32(i32)
declare i32 @llvm.ctlz.i64(i64)
declare i64 @llvm.ctlz.i64(i64)
declare float @llvm.sqrt.f32(float)
@ -44,18 +44,18 @@ define void @libm() {
call void @llvm.prefetch( i8* null, i32 1, i32 3 )
call float @llvm.sqrt.f32( float 5.000000e+00 ) ; <float>:3 [#uses=0]
call double @llvm.sqrt.f64( double 6.000000e+00 ) ; <double>:4 [#uses=0]
call i32 @llvm.ctpop.i8( i8 10 ) ; <i32>:5 [#uses=0]
call i32 @llvm.ctpop.i16( i16 11 ) ; <i32>:6 [#uses=0]
call i8 @llvm.ctpop.i8( i8 10 ) ; <i32>:5 [#uses=0]
call i16 @llvm.ctpop.i16( i16 11 ) ; <i32>:6 [#uses=0]
call i32 @llvm.ctpop.i32( i32 12 ) ; <i32>:7 [#uses=0]
call i32 @llvm.ctpop.i64( i64 13 ) ; <i32>:8 [#uses=0]
call i32 @llvm.ctlz.i8( i8 14 ) ; <i32>:9 [#uses=0]
call i32 @llvm.ctlz.i16( i16 15 ) ; <i32>:10 [#uses=0]
call i64 @llvm.ctpop.i64( i64 13 ) ; <i32>:8 [#uses=0]
call i8 @llvm.ctlz.i8( i8 14 ) ; <i32>:9 [#uses=0]
call i16 @llvm.ctlz.i16( i16 15 ) ; <i32>:10 [#uses=0]
call i32 @llvm.ctlz.i32( i32 16 ) ; <i32>:11 [#uses=0]
call i32 @llvm.ctlz.i64( i64 17 ) ; <i32>:12 [#uses=0]
call i32 @llvm.cttz.i8( i8 18 ) ; <i32>:13 [#uses=0]
call i32 @llvm.cttz.i16( i16 19 ) ; <i32>:14 [#uses=0]
call i64 @llvm.ctlz.i64( i64 17 ) ; <i32>:12 [#uses=0]
call i8 @llvm.cttz.i8( i8 18 ) ; <i32>:13 [#uses=0]
call i16 @llvm.cttz.i16( i16 19 ) ; <i32>:14 [#uses=0]
call i32 @llvm.cttz.i32( i32 20 ) ; <i32>:15 [#uses=0]
call i32 @llvm.cttz.i64( i64 21 ) ; <i32>:16 [#uses=0]
call i64 @llvm.cttz.i64( i64 21 ) ; <i32>:16 [#uses=0]
ret void
}