diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-19 00:20:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-19 00:20:03 +0000 |
commit | 1e4af78b9534c0234b2988517e5d5cd7d9325e32 (patch) | |
tree | 7aeaab9cedab596aeac8a4ab52620c5b2f42b2b1 /test/CodeGen/Generic | |
parent | 4794a6b6a09e3440438cd653ec09cf0c2e45be1c (diff) | |
download | external_llvm-1e4af78b9534c0234b2988517e5d5cd7d9325e32.zip external_llvm-1e4af78b9534c0234b2988517e5d5cd7d9325e32.tar.gz external_llvm-1e4af78b9534c0234b2988517e5d5cd7d9325e32.tar.bz2 |
Add three new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r-- | test/CodeGen/Generic/vector.ll | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/vector.ll b/test/CodeGen/Generic/vector.ll index 9959d73..9d6b132 100644 --- a/test/CodeGen/Generic/vector.ll +++ b/test/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, <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 +} |