ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/arc/mno-swape.c

12 lines
305 B
C

/* { dg-do compile } */
/* { dg-options "-mno-swape" } */
/* Would also like to assemble and check that we get the expected
"Error: bad instruction" assembler messages, but at the moment our
testharness can't do that. */
int f (int i)
{
__asm__("swape %1, %1" : "=r"(i) : "r"(i));
return i;
}