Changes in directory llvm/test/Regression/CodeGen/PowerPC:
vec_spat.ll updated: 1.1 -> 1.2
---
Log message:
New tests for vsplti*
---
Diffs of the changes: (+15 -0)
vec_spat.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.1
llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll:1.1 Wed Mar 22
13:12:46 2006
+++ llvm/test/Regression/CodeGen/PowerPC/vec_spat.ll Sat Mar 25 00:11:56 2006
@@ -1,6 +1,7 @@
; 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
%f4 = type <4 x float>
%i4 = type <4 x int>
@@ -29,3 +30,17 @@
ret void
}
+void %splat_imm_i32(%i4* %P, %i4* %Q, int %X) {
+ %q = load %i4* %Q
+ %R = add %i4 %q, <int -1, int -1, int -1, int -1>
+ store %i4 %R, %i4* %P
+ ret void
+}
+
+void %splat_imm_i16(%i4* %P, %i4* %Q, int %X) {
+ %q = load %i4* %Q
+ %R = add %i4 %q, <int 65537, int 65537, int 65537, int 65537>
+ store %i4 %R, %i4* %P
+ ret void
+}
+
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits