summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-07 01:48:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-07 01:48:46 +0000
commit26593a04db5ab76a90c08ded6a1d2aafec657d7c (patch)
tree5d13daba0db57340929f730acee0652326da485a
parent85cdba29b01b871055e45406de6a00cca83ad479 (diff)
downloadbcm5719-llvm-26593a04db5ab76a90c08ded6a1d2aafec657d7c.tar.gz
bcm5719-llvm-26593a04db5ab76a90c08ded6a1d2aafec657d7c.zip
New test case.
llvm-svn: 44672
-rw-r--r--llvm/test/CodeGen/X86/2007-12-05-VectorShuffle.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2007-12-05-VectorShuffle.ll b/llvm/test/CodeGen/X86/2007-12-05-VectorShuffle.ll
new file mode 100644
index 00000000000..8933a63835f
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2007-12-05-VectorShuffle.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
+
+define void @test(<8 x i16>* %res, <8 x i16>* %A, <8 x i16>* %B) {
+ %tmp1 = load <8 x i16>* %A
+ %tmp2 = load <8 x i16>* %B
+ %tmp3 = shufflevector <8 x i16> %tmp1, <8 x i16> %tmp2, <8 x i32> < i32 8, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7 >
+ store <8 x i16> %tmp3, <8 x i16>* %res
+ ret void
+}
OpenPOWER on IntegriCloud