gcc/testsuite/gcc.dg/torture/pr78515.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-Wno-psabi" } */ |
| 3 | /* { dg-additional-options "-mavx512bw" { target x86_64-*-* i?86-*-* } } */ |
| 4 | /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ |
| 5 | |
| 6 | typedef unsigned V __attribute__ ((vector_size (64))); |
| 7 | |
| 8 | V g; |
| 9 | |
| 10 | static V |
| 11 | baz (V u, V v) |
| 12 | { |
| 13 | g += u; |
| 14 | return v + g + 1; |
| 15 | } |
| 16 | |
| 17 | static V |
| 18 | bar (V u) |
| 19 | { |
| 20 | u[0] = 0; |
| 21 | return baz(u, (V){}); |
| 22 | } |
| 23 | |
| 24 | V |
| 25 | foo () |
| 26 | { |
| 27 | return (V){bar((V){})[0]}; |
| 28 | } |