diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c b/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c new file mode 100644 index 000000000..e378b3fc9 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-mno-xy" } */ +/* 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. */ + +void f (int i) +{ + __asm__("add x0_u0, x0_u0, %0" : : "r" (i)); +} |