1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec" } */
3 /* { dg-require-effective-target powerpc_altivec } */
5 /* Basic test for the new VMX intrinsics. */
8 int f(vector
int a
, int b
)
10 return vec_extract (a
, b
);
12 short f1(vector
short a
, int b
)
14 return vec_extract (a
, b
);
16 vector
short f2(vector
short a
, int b
)
18 return vec_insert (b
, a
, b
);
20 vector
float f3(vector
float a
, int b
)
22 return vec_insert (b
, a
, b
);
27 vector
float f4(float b
, int t
)
29 return vec_promote (g(), t
);
31 vector
float f5(float b
)
33 return vec_splats (g());