gcc/testsuite/gcc.target/arc/mno-swape.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mno-swape" } */ |
| 3 | /* Would also like to assemble and check that we get the expected |
| 4 | "Error: bad instruction" assembler messages, but at the moment our |
| 5 | testharness can't do that. */ |
| 6 | |
| 7 | int f (int i) |
| 8 | { |
| 9 | __asm__("swape %1, %1" : "=r"(i) : "r"(i)); |
| 10 | return i; |
| 11 | } |