[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/vec_call.ll

Chris Lattner lattner at cs.uiuc.edu
Tue May 16 17:18:35 PDT 2006



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

vec_call.ll added (r1.1)
---
Log message:

test for support to pass/return vectors to calls.


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

 vec_call.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/vec_call.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/vec_call.ll:1.1
*** /dev/null	Tue May 16 19:18:33 2006
--- llvm/test/Regression/CodeGen/PowerPC/vec_call.ll	Tue May 16 19:18:23 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5
+ 
+ <4 x int> %test_arg(<4 x int> %A, <4 x int> %B) {
+         %C = add <4 x int> %A, %B
+         ret <4 x int> %C
+ }
+ 
+ <4 x int> %foo() {
+ 	%X = call <4 x int> %test_arg(<4 x int> zeroinitializer, <4 x int> zeroinitializer)
+ 	ret <4 x int> %X
+ }






More information about the llvm-commits mailing list