diff options
Diffstat (limited to 'llvm/test/CodeGen/CellSPU/v2f32.ll')
-rw-r--r-- | llvm/test/CodeGen/CellSPU/v2f32.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CellSPU/v2f32.ll b/llvm/test/CodeGen/CellSPU/v2f32.ll index 2631777511d..004463a86d3 100644 --- a/llvm/test/CodeGen/CellSPU/v2f32.ll +++ b/llvm/test/CodeGen/CellSPU/v2f32.ll @@ -33,3 +33,13 @@ define %vec @test_mul(%vec %param) ret %vec %1 } +define %vec @test_splat(float %param ) { +;CHECK: lqa +;CHECK: shufb + %sv = insertelement <1 x float> undef, float %param, i32 0 + %rv = shufflevector <1 x float> %sv, <1 x float> undef, <2 x i32> zeroinitializer +;CHECK: bi $lr + ret %vec %rv +} + + |