[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll
Evan Cheng
evan.cheng at apple.com
Mon Jul 10 14:49:22 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
vec_shuffle-6.ll updated: 1.1 -> 1.2
---
Log message:
Update.
---
Diffs of the changes: (+13 -3)
vec_shuffle-6.ll | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
Index: llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll
diff -u llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.1 llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.2
--- llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.1 Fri Jul 7 12:54:24 2006
+++ llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll Mon Jul 10 16:49:09 2006
@@ -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
More information about the llvm-commits
mailing list