[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/vector.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Mar 31 09:59:28 PST 2006



Changes in directory llvm/test/Regression/CodeGen/Generic:

vector.ll updated: 1.7 -> 1.8
---
Log message:

Make this test harder, always check generic x86 and SSE-enabled x86.


---
Diffs of the changes:  (+10 -1)

 vector.ll |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletion(-)


Index: llvm/test/Regression/CodeGen/Generic/vector.ll
diff -u llvm/test/Regression/CodeGen/Generic/vector.ll:1.7 llvm/test/Regression/CodeGen/Generic/vector.ll:1.8
--- llvm/test/Regression/CodeGen/Generic/vector.ll:1.7	Thu Mar 23 15:15:57 2006
+++ llvm/test/Regression/CodeGen/Generic/vector.ll	Fri Mar 31 11:59:16 2006
@@ -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 @@
   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>






More information about the llvm-commits mailing list