summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-03-24 01:22:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-03-24 01:22:25 +0000
commite66be95ce23af714a35197d50b468e355ef22a0a (patch)
treea5882587cddf544e3baf36abbb4997076789fb62
parentd27fb3e85eb5686eb08ae0248228b9509f029cb3 (diff)
downloadbcm5719-llvm-e66be95ce23af714a35197d50b468e355ef22a0a.tar.gz
bcm5719-llvm-e66be95ce23af714a35197d50b468e355ef22a0a.zip
Add a vector shuffle test case
llvm-svn: 27027
-rw-r--r--llvm/test/Regression/CodeGen/X86/vec_shuffle.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/X86/vec_shuffle.ll b/llvm/test/Regression/CodeGen/X86/vec_shuffle.ll
new file mode 100644
index 00000000000..9630db22d87
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/X86/vec_shuffle.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps
+
+void %test_v4sf(<4 x float>* %P, float %X, float %Y) {
+ %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
+ %tmp2 = insertelement <4 x float> %tmp, float %X, uint 1
+ %tmp4 = insertelement <4 x float> %tmp2, float %Y, uint 2
+ %tmp6 = insertelement <4 x float> %tmp4, float %Y, uint 3
+ store <4 x float> %tmp6, <4 x float>* %P
+ ret void
+}
OpenPOWER on IntegriCloud