aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKalle Raiskila <kalle.raiskila@nokia.com>2010-08-02 11:22:10 +0000
committerKalle Raiskila <kalle.raiskila@nokia.com>2010-08-02 11:22:10 +0000
commite1c9159f63c60b4d64e80b7912eedf43b93b12e0 (patch)
treed2b5129eca0800d1f47ef97a7a01cb91f39987a3 /test
parentc9fda996fc1cafc7d6c705b9d560e46e83df2ecf (diff)
downloadexternal_llvm-e1c9159f63c60b4d64e80b7912eedf43b93b12e0.zip
external_llvm-e1c9159f63c60b4d64e80b7912eedf43b93b12e0.tar.gz
external_llvm-e1c9159f63c60b4d64e80b7912eedf43b93b12e0.tar.bz2
More SPU v2f32 stuff added: insertelement and shuffle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/CellSPU/v2f32.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/CellSPU/v2f32.ll b/test/CodeGen/CellSPU/v2f32.ll
index 2631777..004463a 100644
--- a/test/CodeGen/CellSPU/v2f32.ll
+++ b/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
+}
+
+