[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 4 10:20:58 PDT 2006



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

vec_spat.ll updated: 1.2 -> 1.3
---
Log message:

new testcase


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

 vec_spat.ll |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)


Index: llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.2 llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.3
--- llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.2	Sat Mar 25 00:11:56 2006
+++ llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll	Tue Apr  4 12:20:45 2006
@@ -1,7 +1,8 @@
 ; Test that vectors are scalarized/lowered correctly.
 ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vspltw | wc -l | grep 2 &&
-; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3 | grep stfs | wc -l | grep 4
-; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsplti | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3 | grep stfs | wc -l | grep 4 &&
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsplti | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsplth | wc -l | grep 1
 
 %f4 = type <4 x float>
 %i4 = type <4 x int>
@@ -44,3 +45,17 @@
         ret void
 }
 
+void %splat_h(short %tmp, <16 x ubyte>* %dst) {
+        %tmp = insertelement <8 x short> undef, short %tmp, uint 0
+        %tmp72 = insertelement <8 x short> %tmp, short %tmp, uint 1
+        %tmp73 = insertelement <8 x short> %tmp72, short %tmp, uint 2
+        %tmp74 = insertelement <8 x short> %tmp73, short %tmp, uint 3
+        %tmp75 = insertelement <8 x short> %tmp74, short %tmp, uint 4
+        %tmp76 = insertelement <8 x short> %tmp75, short %tmp, uint 5
+        %tmp77 = insertelement <8 x short> %tmp76, short %tmp, uint 6
+        %tmp78 = insertelement <8 x short> %tmp77, short %tmp, uint 7
+        %tmp78 = cast <8 x short> %tmp78 to <16 x ubyte>
+        store <16 x ubyte> %tmp78, <16 x ubyte>* %dst
+	ret void
+}
+






More information about the llvm-commits mailing list