[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/vector.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 18 16:20:15 PST 2006
Changes in directory llvm/test/Regression/CodeGen/Generic:
vector.ll updated: 1.1 -> 1.2
---
Log message:
Add three new testcases
---
Diffs of the changes: (+25 -0)
vector.ll | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/vector.ll
diff -u llvm/test/Regression/CodeGen/Generic/vector.ll:1.1 llvm/test/Regression/CodeGen/Generic/vector.ll:1.2
--- llvm/test/Regression/CodeGen/Generic/vector.ll:1.1 Fri Mar 17 14:04:40 2006
+++ llvm/test/Regression/CodeGen/Generic/vector.ll Sat Mar 18 18:20:03 2006
@@ -8,6 +8,8 @@
implementation
+;;; TEST HANDLING OF VARIOUS VECTOR SIZES
+
void %test_f1(%f1 *%P, %f1* %Q, %f1 *%S) {
%p = load %f1 *%P
%q = load %f1* %Q
@@ -39,3 +41,26 @@
store %f8 %R, %f8 *%S
ret void
}
+
+;;; TEST VECTOR CONSTRUCTS
+
+void %test_cst(%f4 *%P, %f4 *%S) {
+ %p = load %f4* %P
+ %R = add %f4 %p, <float 0.1, float 1.0, float 2.0, float 4.5>
+ store %f4 %R, %f4 *%S
+ ret void
+}
+
+void %test_zero(%f4 *%P, %f4 *%S) {
+ %p = load %f4* %P
+ %R = add %f4 %p, zeroinitializer
+ store %f4 %R, %f4 *%S
+ ret void
+}
+
+void %test_undef(%f4 *%P, %f4 *%S) {
+ %p = load %f4* %P
+ %R = add %f4 %p, undef
+ store %f4 %R, %f4 *%S
+ ret void
+}
More information about the llvm-commits
mailing list