test for support to pass/return vectors to calls.
[oota-llvm.git] / test / CodeGen / PowerPC / vec_call.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5
2
3 <4 x int> %test_arg(<4 x int> %A, <4 x int> %B) {
4         %C = add <4 x int> %A, %B
5         ret <4 x int> %C
6 }
7
8 <4 x int> %foo() {
9         %X = call <4 x int> %test_arg(<4 x int> zeroinitializer, <4 x int> zeroinitializer)
10         ret <4 x int> %X
11 }