[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-15.c
blob4e48cb7652f77f562c1b78ab2c62b3fb39cad45c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 #include <altivec.h>
7 /* Test whether the C front-end is not excessively picky about
8 the integral types and literals that AltiVec instrinsics will
9 accept. */
11 vector int vi = { 1, 2, 3, 4 };
13 int
14 main (void)
16 unsigned long ul = 2;
17 signed long sl = 2;
18 unsigned int ui = 2;
19 signed int si = 2;
20 float fl = 2.0;
22 vec_dst (&vi, ul, '\0');
23 vec_dst (&vi, sl, 0);
24 vec_dst (&vi, ui, '\0');
25 vec_dst (&vi, si, 0);
26 vec_dstst (&vi, (short)fl, '\0');
28 return 0;