Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / other / spu2vmx-1.C
blobd9c8faf94592d00b2b2100edc4fb4b0b208335e7
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_spu } */
3 /* { dg-options "-maltivec" } */
5 #include <altivec.h>
6 #include <spu2vmx.h>
8 vec_uint4 f(vec_uint4 a, vec_uint4 b)
10   return spu_add(a, b);
12 vec_float4 f(vec_float4 a, vec_float4 b)
14   return spu_add(a, b);