diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-24 01:22:25 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-24 01:22:25 +0000 |
commit | 23ea6078e9c0eba167011748c1faf044e2c0e509 (patch) | |
tree | 56847a6336295ccb798c47b108f3bf439bf405d3 /test/CodeGen/X86 | |
parent | 14aed5e66b606ab3ba39e1effd2a0a17790d6f19 (diff) | |
download | external_llvm-23ea6078e9c0eba167011748c1faf044e2c0e509.zip external_llvm-23ea6078e9c0eba167011748c1faf044e2c0e509.tar.gz external_llvm-23ea6078e9c0eba167011748c1faf044e2c0e509.tar.bz2 |
Add a vector shuffle test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/vec_shuffle.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_shuffle.ll b/test/CodeGen/X86/vec_shuffle.ll new file mode 100644 index 0000000..9630db2 --- /dev/null +++ b/test/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 +} |