[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/vector.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 21 10:27:39 PST 2006
Changes in directory llvm/test/Regression/CodeGen/Generic:
vector.ll updated: 1.5 -> 1.6
---
Log message:
Add an integer splat test
---
Diffs of the changes: (+19 -0)
vector.ll | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/vector.ll
diff -u llvm/test/Regression/CodeGen/Generic/vector.ll:1.5 llvm/test/Regression/CodeGen/Generic/vector.ll:1.6
--- llvm/test/Regression/CodeGen/Generic/vector.ll:1.5 Sat Mar 18 23:46:51 2006
+++ llvm/test/Regression/CodeGen/Generic/vector.ll Tue Mar 21 12:27:27 2006
@@ -6,6 +6,7 @@
%f1 = type <1 x float>
%f2 = type <2 x float>
%f4 = type <4 x float>
+%i4 = type <4 x int>
%f8 = type <8 x float>
implementation
@@ -44,6 +45,13 @@
ret void
}
+void %test_fmul(%f8 *%P, %f8* %Q, %f8 *%S) {
+ %p = load %f8* %P
+ %q = load %f8* %Q
+ %R = mul %f8 %p, %q
+ store %f8 %R, %f8 *%S
+ ret void
+}
;;; TEST VECTOR CONSTRUCTS
void %test_cst(%f4 *%P, %f4 *%S) {
@@ -98,3 +106,14 @@
ret void
}
+void %splat_i4(%i4* %P, %i4* %Q, int %X) {
+ %tmp = insertelement %i4 undef, int %X, uint 0
+ %tmp2 = insertelement %i4 %tmp, int %X, uint 1
+ %tmp4 = insertelement %i4 %tmp2, int %X, uint 2
+ %tmp6 = insertelement %i4 %tmp4, int %X, uint 3
+ %q = load %i4* %Q
+ %R = add %i4 %q, %tmp6
+ store %i4 %R, %i4* %P
+ ret void
+}
+
More information about the llvm-commits
mailing list