From 234217d62f91954d5871a23b49115a420bba27d5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Mar 2006 00:20:03 +0000 Subject: [PATCH] Add three new testcases llvm-svn: 26844 --- test/Regression/CodeGen/Generic/vector.ll | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/Regression/CodeGen/Generic/vector.ll b/test/Regression/CodeGen/Generic/vector.ll index 9959d73114e..9d6b13235b7 100644 --- a/test/Regression/CodeGen/Generic/vector.ll +++ b/test/Regression/CodeGen/Generic/vector.ll @@ -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 @@ void %test_f8(%f8 *%P, %f8* %Q, %f8 *%S) { 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, + 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 +}