llvm.org GIT mirror llvm / 63f7ba0
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 Dan Gohman 12 years ago
2 changed file(s) with 24 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
55 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"
66 target triple = "spu"
77
8 declare i32 @llvm.ctpop.i8(i8)
9 declare i32 @llvm.ctpop.i16(i16)
8 declare i8 @llvm.ctpop.i8(i8)
9 declare i16 @llvm.ctpop.i16(i16)
1010 declare i32 @llvm.ctpop.i32(i32)
1111
1212 define i32 @test_i8(i8 %X) {
13 call i32 @llvm.ctpop.i8(i8 %X)
14 %Y = bitcast i32 %1 to i32
13 call i8 @llvm.ctpop.i8(i8 %X)
14 %Y = zext i8 %1 to i32
1515 ret i32 %Y
1616 }
1717
1818 define i32 @test_i16(i16 %X) {
19 call i32 @llvm.ctpop.i16(i16 %X)
20 %Y = bitcast i32 %1 to i32
19 call i16 @llvm.ctpop.i16(i16 %X)
20 %Y = zext i16 %1 to i32
2121 ret i32 %Y
2222 }
2323
77
88 declare void @llvm.prefetch(i8*, i32, i32)
99
10 declare i32 @llvm.ctpop.i8(i8)
10 declare i8 @llvm.ctpop.i8(i8)
1111
12 declare i32 @llvm.ctpop.i16(i16)
12 declare i16 @llvm.ctpop.i16(i16)
1313
1414 declare i32 @llvm.ctpop.i32(i32)
1515
16 declare i32 @llvm.ctpop.i64(i64)
16 declare i64 @llvm.ctpop.i64(i64)
1717
18 declare i32 @llvm.cttz.i8(i8)
18 declare i8 @llvm.cttz.i8(i8)
1919
20 declare i32 @llvm.cttz.i16(i16)
20 declare i16 @llvm.cttz.i16(i16)
2121
2222 declare i32 @llvm.cttz.i32(i32)
2323
24 declare i32 @llvm.cttz.i64(i64)
24 declare i64 @llvm.cttz.i64(i64)
2525
26 declare i32 @llvm.ctlz.i8(i8)
26 declare i8 @llvm.ctlz.i8(i8)
2727
28 declare i32 @llvm.ctlz.i16(i16)
28 declare i16 @llvm.ctlz.i16(i16)
2929
3030 declare i32 @llvm.ctlz.i32(i32)
3131
32 declare i32 @llvm.ctlz.i64(i64)
32 declare i64 @llvm.ctlz.i64(i64)
3333
3434 declare float @llvm.sqrt.f32(float)
3535
4343 call void @llvm.prefetch( i8* null, i32 1, i32 3 )
4444 call float @llvm.sqrt.f32( float 5.000000e+00 ) ; :3 [#uses=0]
4545 call double @llvm.sqrt.f64( double 6.000000e+00 ) ; :4 [#uses=0]
46 call i32 @llvm.ctpop.i8( i8 10 ) ; :5 [#uses=0]
47 call i32 @llvm.ctpop.i16( i16 11 ) ; :6 [#uses=0]
46 call i8 @llvm.ctpop.i8( i8 10 ) ; :5 [#uses=0]
47 call i16 @llvm.ctpop.i16( i16 11 ) ; :6 [#uses=0]
4848 call i32 @llvm.ctpop.i32( i32 12 ) ; :7 [#uses=0]
49 call i32 @llvm.ctpop.i64( i64 13 ) ; :8 [#uses=0]
50 call i32 @llvm.ctlz.i8( i8 14 ) ; :9 [#uses=0]
51 call i32 @llvm.ctlz.i16( i16 15 ) ; :10 [#uses=0]
49 call i64 @llvm.ctpop.i64( i64 13 ) ; :8 [#uses=0]
50 call i8 @llvm.ctlz.i8( i8 14 ) ; :9 [#uses=0]
51 call i16 @llvm.ctlz.i16( i16 15 ) ; :10 [#uses=0]
5252 call i32 @llvm.ctlz.i32( i32 16 ) ; :11 [#uses=0]
53 call i32 @llvm.ctlz.i64( i64 17 ) ; :12 [#uses=0]
54 call i32 @llvm.cttz.i8( i8 18 ) ; :13 [#uses=0]
55 call i32 @llvm.cttz.i16( i16 19 ) ; :14 [#uses=0]
53 call i64 @llvm.ctlz.i64( i64 17 ) ; :12 [#uses=0]
54 call i8 @llvm.cttz.i8( i8 18 ) ; :13 [#uses=0]
55 call i16 @llvm.cttz.i16( i16 19 ) ; :14 [#uses=0]
5656 call i32 @llvm.cttz.i32( i32 20 ) ; :15 [#uses=0]
57 call i32 @llvm.cttz.i64( i64 21 ) ; :16 [#uses=0]
57 call i64 @llvm.cttz.i64( i64 21 ) ; :16 [#uses=0]
5858 ret void
5959 }
6060