rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL when returning call_cookie.
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-2.c
blob4f341dd4207996d92c552d507787e25bb4112cd8
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 /* Program to test the vector_size attribute. This needs to run on a
6 target that has vectors, so use AltiVec. */
8 #define vector __attribute__((vector_size(16)))
10 vector int foobar;
12 /* Only floats and integrals allowed. We don't care if they map to SIs. */
13 struct X { int frances; };
14 vector struct X hotdog; /* { dg-error "invalid vector type" } */
16 /* Arrays of vectors. */
17 vector char b[10], ouch;
19 /* Pointers of vectors. */
20 vector short *shoe, polish;
22 int xxx[sizeof(foobar) == 16 ? 69 : -1];
24 int nc17[sizeof(shoe) == sizeof (char *) ? 69 : -1];
26 code ()
28 *shoe = polish;
29 b[1] = ouch;
32 vector short
33 hoop ()
35 return polish;