| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=x86-64 -mevex512 -Wno-psabi" } */ |
| 3 |
/* { dg-warning "'-mevex512' will be deprecated in GCC 16 due to all machines 512 bit vector size supported" "" { target *-*-* } 0 } */ |
| 4 |
/* { dg-final { scan-assembler-not "%zmm" } } */ |
| 5 |
|
| 6 |
typedef double __m512d __attribute__ ((__vector_size__ (64), __may_alias__)); |
| 7 |
|
| 8 |
__attribute__ ((target ("avx10.1-256"))) __m512d |
| 9 |
foo () |
| 10 |
{ /* { dg-warning "Using '-mevex512' without any AVX512 features enabled together with AVX10.1 only will not enable any AVX512 or AVX10.1-512 features, using 256 as max vector size" "" { target *-*-* } 0 } */ |
| 11 |
__m512d a, b; |
| 12 |
a = a + b; |
| 13 |
return a; |
| 14 |
} |