gcc/testsuite/gcc.dg/pr116905.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target float16 } */ |
| 3 | /* { dg-options "-frounding-math" } */ |
| 4 | /* { dg-add-options float16 } */ |
| 5 | /* { dg-additional-options "-mavx" { target avx } } */ |
| 6 | |
| 7 | typedef __attribute__((__vector_size__(16))) _Float16 F; |
| 8 | typedef __attribute__((__vector_size__(32))) int V; |
| 9 | F f; |
| 10 | |
| 11 | void |
| 12 | foo() |
| 13 | { |
| 14 | f += __builtin_convertvector((V){3307}, F); |
| 15 | } |