[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/vector.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 18 20:45:23 PST 2006



Changes in directory llvm/test/Regression/CodeGen/Generic:

vector.ll updated: 1.3 -> 1.4
---
Log message:

add another testcase, explicitly check stuff works with G5 and G3 codegen on
PPC.


---
Diffs of the changes:  (+17 -1)

 vector.ll |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletion(-)


Index: llvm/test/Regression/CodeGen/Generic/vector.ll
diff -u llvm/test/Regression/CodeGen/Generic/vector.ll:1.3 llvm/test/Regression/CodeGen/Generic/vector.ll:1.4
--- llvm/test/Regression/CodeGen/Generic/vector.ll:1.3	Sat Mar 18 19:27:04 2006
+++ llvm/test/Regression/CodeGen/Generic/vector.ll	Sat Mar 18 22:45:11 2006
@@ -1,5 +1,7 @@
-; RUN: llvm-as < %s | llc
 ; Test that vectors are scalarized/lowered correctly.
+; RUN: llvm-as < %s | llc && 
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 &&
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3
 
 %f1 = type <1 x float>
 %f2 = type <2 x float>
@@ -76,3 +78,17 @@
   store %f4 %R, %f4 *%S
   ret void
 }
+
+;;; TEST IMPORTANT IDIOMS
+
+void %splat(%f4* %P, %f4* %Q, float %X) {
+        %tmp = insertelement %f4 undef, float %X, uint 0
+        %tmp2 = insertelement %f4 %tmp, float %X, uint 1
+        %tmp4 = insertelement %f4 %tmp2, float %X, uint 2
+        %tmp6 = insertelement %f4 %tmp4, float %X, uint 3
+	%q = load %f4* %Q
+	%R = add %f4 %q, %tmp6
+        store %f4 %R, %f4* %P
+        ret void
+}
+






More information about the llvm-commits mailing list