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