summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CellSPU/v2i32.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CellSPU/v2i32.ll')
-rw-r--r--test/CodeGen/CellSPU/v2i32.ll20
1 files changed, 2 insertions, 18 deletions
diff --git a/test/CodeGen/CellSPU/v2i32.ll b/test/CodeGen/CellSPU/v2i32.ll
index 71d4aba..9c5b896 100644
--- a/test/CodeGen/CellSPU/v2i32.ll
+++ b/test/CodeGen/CellSPU/v2i32.ll
@@ -9,7 +9,8 @@ define %vec @test_ret(%vec %param)
define %vec @test_add(%vec %param)
{
-;CHECK: a {{\$.}}, $3, $3
+;CHECK: shufb
+;CHECK: addx
%1 = add %vec %param, %param
;CHECK: bi $lr
ret %vec %1
@@ -17,21 +18,14 @@ define %vec @test_add(%vec %param)
define %vec @test_sub(%vec %param)
{
-;CHECK: sf {{\$.}}, $4, $3
%1 = sub %vec %param, <i32 1, i32 1>
-
;CHECK: bi $lr
ret %vec %1
}
define %vec @test_mul(%vec %param)
{
-;CHECK: mpyu
-;CHECK: mpyh
-;CHECK: a {{\$., \$., \$.}}
-;CHECK: a {{\$., \$., \$.}}
%1 = mul %vec %param, %param
-
;CHECK: bi $lr
ret %vec %1
}
@@ -56,22 +50,12 @@ define i32 @test_extract() {
define void @test_store( %vec %val, %vec* %ptr)
{
-;CHECK: stqd $3, 0(${{.}})
-;CHECK: bi $lr
store %vec %val, %vec* %ptr
ret void
}
-;Alignment of <2 x i32> is not *directly* defined in the ABI
-;It probably is safe to interpret it as an array, thus having 8 byte
-;alignment (according to ABI). This tests that the size of
-;[2 x <2 x i32>] is 16 bytes, i.e. there is no padding between the
-;two arrays
define <2 x i32>* @test_alignment( [2 x <2 x i32>]* %ptr)
{
-; CHECK-NOT: ai $3, $3, 16
-; CHECK: ai $3, $3, 8
-; CHECK: bi $lr
%rv = getelementptr [2 x <2 x i32>]* %ptr, i32 0, i32 1
ret <2 x i32>* %rv
}
OpenPOWER on IntegriCloud