PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr79559.c
blob2eeb652a82ed91e8f9f3d159f4c8c494162b0316
1 /* PR target/79559 */
2 /* { dg-do compile } */
4 void
5 foo (int x)
7 __asm__ volatile ("# %K0" : : "r" (x)); /* { dg-error "invalid operand code" } */
8 __asm__ volatile ("# %r0" : : "r" (x)); /* { dg-error "invalid operand code" } */
9 __asm__ volatile ("# %r0" : : "n" (129)); /* { dg-error "invalid operand code" } */
10 __asm__ volatile ("# %R0" : : "r" (x)); /* { dg-error "invalid operand code" } */