[llvm-commits] CVS: llvm/test/Regression/CFrontend/2006-03-16-VectorCtor.c

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 16 10:48:03 PST 2006



Changes in directory llvm/test/Regression/CFrontend:

2006-03-16-VectorCtor.c added (r1.1)
---
Log message:

New testcase, the new CFE compiles this into insertelement instructions, the 
old one crashes.


---
Diffs of the changes:  (+11 -0)

 2006-03-16-VectorCtor.c |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CFrontend/2006-03-16-VectorCtor.c
diff -c /dev/null llvm/test/Regression/CFrontend/2006-03-16-VectorCtor.c:1.1
*** /dev/null	Thu Mar 16 12:48:01 2006
--- llvm/test/Regression/CFrontend/2006-03-16-VectorCtor.c	Thu Mar 16 12:47:51 2006
***************
*** 0 ****
--- 1,11 ----
+ // Passes with the new CFE.
+ // RUN: %llvmgcc %s -S -o -
+ // XFAIL: *
+ 
+ typedef int v4si __attribute__ ((__vector_size__ (16)));
+ void test(v4si *P, v4si *Q, float X) {
+   *P = (v4si){ X, X, X, X } * *Q;
+ }
+ 
+ v4si G = (v4si){ 0.1, 1.2, 4.2, 17.2 };
+ 






More information about the llvm-commits mailing list