aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-10 21:49:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-10 21:49:09 +0000
commitb1ed76a04f1e2ed213d7fd8e14fadb8fbebd4c55 (patch)
treeace2f2d32104b0ad5690d6ecf33158ed4901fa0c
parent20adf47dbc5a48ecf92ddd3e23253d9c21d2b841 (diff)
Update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/vec_shuffle-6.ll16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-6.ll b/test/CodeGen/X86/vec_shuffle-6.ll
index ca90c43c3f..c1f7130621 100644
--- a/test/CodeGen/X86/vec_shuffle-6.ll
+++ b/test/CodeGen/X86/vec_shuffle-6.ll
@@ -1,4 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movups | wc -l | grep 3
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movapd | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movups | wc -l | grep 2
%x = global [4 x int] [ int 1, int 2, int 3, int 4 ]
@@ -15,7 +17,7 @@
ret <2 x long> %tmp16
}
-<4 x float> %test2(float %a, float %b, float %c, float %d) {
+<4 x float> %test2(int %dummy, float %a, float %b, float %c, float %d) {
%tmp = insertelement <4 x float> undef, float %a, uint 0
%tmp11 = insertelement <4 x float> %tmp, float %b, uint 1
%tmp12 = insertelement <4 x float> %tmp11, float %c, uint 2
@@ -23,7 +25,15 @@
ret <4 x float> %tmp13
}
-<2 x double> %test3(double %a, double %b) {
+<4 x float> %test3(float %a, float %b, float %c, float %d) {
+ %tmp = insertelement <4 x float> undef, float %a, uint 0
+ %tmp11 = insertelement <4 x float> %tmp, float %b, uint 1
+ %tmp12 = insertelement <4 x float> %tmp11, float %c, uint 2
+ %tmp13 = insertelement <4 x float> %tmp12, float %d, uint 3
+ ret <4 x float> %tmp13
+}
+
+<2 x double> %test4(double %a, double %b) {
%tmp = insertelement <2 x double> undef, double %a, uint 0
%tmp7 = insertelement <2 x double> %tmp, double %b, uint 1
ret <2 x double> %tmp7