1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ /* { dg-options "-O2 -march=x86-64 -mavx512bw -mno-evex512" } */ #include <immintrin.h> long long foo (long long c) { register long long a __asm ("k7") = c; long long b = foo (a); asm volatile ("" : "+k" (b)); /* { dg-error "inconsistent operand constraints in an 'asm'" } */ return b; }