gcc/testsuite/gcc.target/i386/avx512bf16-pr108881.c
raw| 1 | /* PR target/108881 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fpermissive -mavx512bf16 -mno-avx512vl" } */ |
| 4 | |
| 5 | typedef float __m256 __attribute__((__vector_size__(32))); |
| 6 | typedef __bf16 __v16bf __attribute__((__vector_size__(32))); |
| 7 | __v16bf a; |
| 8 | __m256 b, c; |
| 9 | |
| 10 | void |
| 11 | foo (void) |
| 12 | { |
| 13 | a = __builtin_ia32_cvtne2ps2bf16_v16bf (b, c); /* { dg-warning "implicit declaration of function" } */ |
| 14 | } /* { dg-error "incompatible types when assigning to type" "" { target *-*-* } .-1 } */ |