1 ;RUN: llc --march=cellspu %s -o - | FileCheck %s
4 define %vec @test_ret(%vec %param)
10 define %vec @test_add(%vec %param)
12 ;CHECK: a {{\$.}}, $3, $3
13 %1 = add %vec %param, %param
18 define %vec @test_sub(%vec %param)
20 ;CHECK: sf {{\$.}}, $4, $3
21 %1 = sub %vec %param, <i32 1, i32 1>
27 define %vec @test_mul(%vec %param)
31 ;CHECK: a {{\$., \$., \$.}}
32 ;CHECK: a {{\$., \$., \$.}}
33 %1 = mul %vec %param, %param
39 define <2 x i32> @test_splat(i32 %param ) {
40 ;TODO insertelement transforms to a PREFSLOT2VEC, that trasforms to the
42 ;CHECK-NOT or $3, $3, $3
45 %sv = insertelement <1 x i32> undef, i32 %param, i32 0
46 %rv = shufflevector <1 x i32> %sv, <1 x i32> undef, <2 x i32> zeroinitializer
51 define i32 @test_extract() {
53 %rv = extractelement <2 x i32> zeroinitializer, i32 undef ; <i32> [#uses=1]
58 define void @test_store( %vec %val, %vec* %ptr)
60 ;CHECK: stqd $3, 0(${{.}})
62 store %vec %val, %vec* %ptr