gcc/testsuite/gcc.target/i386/avx10_1-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -march=x86-64 -mavx10.1" } */ |
| 3 | /* { dg-warning "'-mavx10.1' is aliased to 512 bit since GCC14.3 and GCC15.1 while '-mavx10.1-256' and '-mavx10.1-512' will be deprecated in GCC 16 due to all machines 512 bit vector size supported" "" { target *-*-* } 0 } */ |
| 4 | |
| 5 | #include <immintrin.h> |
| 6 | |
| 7 | int |
| 8 | foo (int c) |
| 9 | { |
| 10 | register int a __asm ("k7") = c; |
| 11 | int b = foo (a); |
| 12 | asm volatile ("" : "+k" (b)); |
| 13 | return b; |
| 14 | } |