gcc/testsuite/gcc.dg/pr93780.c
raw| 1 | /* PR tree-optimization/93780 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-additional-options "-mavx" { target avx } } */ |
| 5 | |
| 6 | typedef float V __attribute__((vector_size (32))); |
| 7 | |
| 8 | float |
| 9 | foo (void) |
| 10 | { |
| 11 | const float init[6] = {}; |
| 12 | V v = {}; |
| 13 | __builtin_memcpy (&v, init, sizeof (init)); |
| 14 | return v[0]; |
| 15 | } |