gcc/testsuite/gcc.target/powerpc/pr83399.c
raw| 1 | /* PR target/83399 */ |
| 2 | /* { dg-do compile { target { powerpc*-*-linux* } } } */ |
| 3 | /* { dg-options "-O1 -mabi=elfv2 -mlittle -mvsx" } */ |
| 4 | /* { dg-require-effective-target powerpc_vsx } */ |
| 5 | |
| 6 | typedef __attribute__((altivec(vector__))) int v4si_t; |
| 7 | int |
| 8 | foo (void) |
| 9 | { |
| 10 | v4si_t a, u, v, y; |
| 11 | u = __builtin_altivec_lvx (32, ((void *) &a) - 32); |
| 12 | v = __builtin_altivec_lvx (64, ((void *) &a) - 32); |
| 13 | y = u + v; |
| 14 | return y[0]; |
| 15 | } |