diff options
author | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-08-29 12:41:50 +0000 |
---|---|---|
committer | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-08-29 12:41:50 +0000 |
commit | bd887df8b960404f3f1a2f5a6a98ec8c2aa8394d (patch) | |
tree | 608e8368dd6e67ee38020902bfc369dc672ae016 /test/CodeGen/CellSPU | |
parent | 10ce7f311694aed3bbdd4ba7c5260c05597a2f22 (diff) | |
download | external_llvm-bd887df8b960404f3f1a2f5a6a98ec8c2aa8394d.zip external_llvm-bd887df8b960404f3f1a2f5a6a98ec8c2aa8394d.tar.gz external_llvm-bd887df8b960404f3f1a2f5a6a98ec8c2aa8394d.tar.bz2 |
Fix lowering of INSERT_VECTOR_ELT in SPU.
The IDX was treated as byte index, not element index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CellSPU')
-rw-r--r-- | test/CodeGen/CellSPU/shuffles.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/CellSPU/shuffles.ll b/test/CodeGen/CellSPU/shuffles.ll index bc087f4..f37d2ae 100644 --- a/test/CodeGen/CellSPU/shuffles.ll +++ b/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 +} + |