diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-31 17:59:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-31 17:59:16 +0000 |
commit | a2834fa9671529d98b7a8b32601623a32c175283 (patch) | |
tree | 63f4dbdf19f7f5534018e640078b7ba94d8b1f21 /llvm/test/Regression/CodeGen/Generic | |
parent | 6f42325dca9ce34010376590e93b0b9e674f8917 (diff) | |
download | bcm5719-llvm-a2834fa9671529d98b7a8b32601623a32c175283.tar.gz bcm5719-llvm-a2834fa9671529d98b7a8b32601623a32c175283.zip |
Make this test harder, always check generic x86 and SSE-enabled x86.
llvm-svn: 27295
Diffstat (limited to 'llvm/test/Regression/CodeGen/Generic')
-rw-r--r-- | llvm/test/Regression/CodeGen/Generic/vector.ll | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/Regression/CodeGen/Generic/vector.ll b/llvm/test/Regression/CodeGen/Generic/vector.ll index e66b9196335..37bc1c68bf5 100644 --- a/llvm/test/Regression/CodeGen/Generic/vector.ll +++ b/llvm/test/Regression/CodeGen/Generic/vector.ll @@ -1,13 +1,16 @@ ; Test that vectors are scalarized/lowered correctly. ; RUN: llvm-as < %s | llc && ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 && -; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3 +; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3 && +; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386 && +; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah %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> +%d8 = type <8 x double> implementation @@ -99,6 +102,12 @@ float %test_extract_elt(%f8 *%P) { ret float %R } +double %test_extract_elt2(%d8 *%P) { + %p = load %d8* %P + %R = extractelement %d8 %p, uint 3 + ret double %R +} + void %test_cast_1(<4 x float>* %b, <4 x int>* %a) { %tmp = load <4 x float>* %b %tmp2 = add <4 x float> %tmp, <float 1.0, float 2.0, float 3.0, float 4.0> |