Merge with trank @ 137446
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34856.c
blobae42c85b0bd46d09b833bdc172929b9cb69e5026
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-options "-O2 -w" { target { powerpc*-*-linux* } } } */
5 /* { dg-options "-O2 -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */
7 typedef unsigned __attribute__ ((__mode__ (__pointer__))) uintptr_t;
9 #undef __vector
10 #define __vector __attribute__ ((__vector_size__ (16)))
12 typedef __vector signed char qword;
13 typedef __vector uintptr_t VU;
15 extern short g[192 + 16];
17 void f (qword);
19 void f1 (unsigned ctr)
21 VU pin;
23 pin = (VU){(uintptr_t) &g[16]};
26 f ((qword) pin);
27 ctr--;
29 while (ctr);