1 ;RUN: llc --march=cellspu %s -o - | FileCheck %s
2 %vec = type <2 x float>
4 define %vec @test_ret(%vec %param)
10 define %vec @test_add(%vec %param)
13 %1 = fadd %vec %param, %param
18 define %vec @test_sub(%vec %param)
21 %1 = fsub %vec %param, %param
27 define %vec @test_mul(%vec %param)
30 %1 = fmul %vec %param, %param
36 define %vec @test_splat(float %param ) {
39 %sv = insertelement <1 x float> undef, float %param, i32 0
40 %rv = shufflevector <1 x float> %sv, <1 x float> undef, <2 x i32> zeroinitializer
45 define void @test_store(%vec %val, %vec* %ptr){
48 store %vec undef, %vec* null
50 ;CHECK: stqd $3, 0($4)
52 store %vec %val, %vec* %ptr
56 define %vec @test_insert(){
59 %rv = insertelement %vec undef, float 0.0e+00, i32 undef