aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-31 17:59:16 +0000
committerChris Lattner <sabre@nondot.org>2006-03-31 17:59:16 +0000
commitbf9341493a55ac191cf894d7a985b19db03b0586 (patch)
treee59d4798e9000e02074319a43edc4ddcf3ab91b6
parent1597221eace1c53ce5f84a7018397497d11a8393 (diff)
downloadexternal_llvm-bf9341493a55ac191cf894d7a985b19db03b0586.zip
external_llvm-bf9341493a55ac191cf894d7a985b19db03b0586.tar.gz
external_llvm-bf9341493a55ac191cf894d7a985b19db03b0586.tar.bz2
Make this test harder, always check generic x86 and SSE-enabled x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27295 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/Generic/vector.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/Generic/vector.ll b/test/CodeGen/Generic/vector.ll
index e66b919..37bc1c6 100644
--- a/test/CodeGen/Generic/vector.ll
+++ b/test/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>