diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-24 02:56:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-24 02:56:00 +0000 |
commit | 0e47c352fc2ce9c5d1f567dec91f00a1d14f6cc9 (patch) | |
tree | b3e4ac7aabda89aba94bccbb1c36292bade4521d | |
parent | 2f51914d828b462b054195e73c75448f24e01979 (diff) |
Add a v2f64 shuffle case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27038 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/vec_shuffle.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/X86/vec_shuffle.ll b/test/CodeGen/X86/vec_shuffle.ll index 9630db22d8..ab500530f7 100644 --- a/test/CodeGen/X86/vec_shuffle.ll +++ b/test/CodeGen/X86/vec_shuffle.ll @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufp | wc -l | grep 1 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlhps void %test_v4sf(<4 x float>* %P, float %X, float %Y) { %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0 @@ -8,3 +9,10 @@ void %test_v4sf(<4 x float>* %P, float %X, float %Y) { store <4 x float> %tmp6, <4 x float>* %P ret void } + +void %test_v2sd(<2 x double>* %P, double %X, double %Y) { + %tmp = insertelement <2 x double> zeroinitializer, double %X, uint 0 + %tmp2 = insertelement <2 x double> %tmp, double %Y, uint 1 + store <2 x double> %tmp2, <2 x double>* %P + ret void +} |