diff options
author | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-06-21 10:17:36 +0000 |
---|---|---|
committer | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-06-21 10:17:36 +0000 |
commit | 6f58190f6f0a5f045656322365d63d936079ceb6 (patch) | |
tree | 7b2398ecc45955c71113c405b01489f319beee68 /llvm/test/CodeGen/CellSPU | |
parent | 9d94ebf1b6c66a0258d4e1e73fde1e425c919321 (diff) | |
download | bcm5719-llvm-6f58190f6f0a5f045656322365d63d936079ceb6.tar.gz bcm5719-llvm-6f58190f6f0a5f045656322365d63d936079ceb6.zip |
Fix lowering of VECTOR_SHUFFLE on SPU. Old algorithm
used to choke llc with the attached test.
llvm-svn: 106411
Diffstat (limited to 'llvm/test/CodeGen/CellSPU')
-rw-r--r-- | llvm/test/CodeGen/CellSPU/shuffles.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CellSPU/shuffles.ll b/llvm/test/CodeGen/CellSPU/shuffles.ll new file mode 100644 index 00000000000..20ac5705586 --- /dev/null +++ b/llvm/test/CodeGen/CellSPU/shuffles.ll @@ -0,0 +1,10 @@ +; RUN: llc --march=cellspu < %s | FileCheck %s + +define <4 x float> @shuffle(<4 x float> %param1, <4 x float> %param2) { + ; CHECK: cwd {{\$.}}, 0($sp) + ; CHECK: shufb {{\$., \$4, \$3, \$.}} + %val= shufflevector <4 x float> %param1, <4 x float> %param2, <4 x i32> <i32 4,i32 1,i32 2,i32 3> + ret <4 x float> %val + +} + |