Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / altivec-15.c
blob5d9f9ff37da672cc7b1141ed4a5cf14b9749e2df
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
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;