aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-xy.c
blob: e378b3fc9b637de601383585eff5ef401aaad7f7 (plain)
1
2
3
4
5
6
7
8
9
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));
}