summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CellSPU/shuffles.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/CellSPU/shuffles.ll')
-rw-r--r--llvm/test/CodeGen/CellSPU/shuffles.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CellSPU/shuffles.ll b/llvm/test/CodeGen/CellSPU/shuffles.ll
index bc087f4d0d5..f37d2ae89b0 100644
--- a/llvm/test/CodeGen/CellSPU/shuffles.ll
+++ b/llvm/test/CodeGen/CellSPU/shuffles.ll
@@ -31,3 +31,11 @@ define void @test_insert( <2 x float>* %ptr, float %val1, float %val2 ) {
ret void
}
+define <4 x float> @test_insert_1(<4 x float> %vparam, float %eltparam) {
+;CHECK: cwd $5, 4($sp)
+;CHECK: shufb $3, $4, $3, $5
+;CHECK: bi $lr
+ %rv = insertelement <4 x float> %vparam, float %eltparam, i32 1
+ ret <4 x float> %rv
+}
+
OpenPOWER on IntegriCloud