diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/arc/mno-crc.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/arc/mno-crc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-crc.c b/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-crc.c new file mode 100644 index 000000000..70ab9c117 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-crc.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-mno-crc" } */ +/* 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__("crc %1, %1, %1" : "=r"(i) : "r"(i)); + return i; +} |