aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arc/mno-mac-d16.c
blob: 68a20f4f55ac192d740031b7efcbad2f79e44f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-mno-mac-d16" } */
/* 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__("muldw %1, %1, %1" : "=r"(i) : "r"(i));
  return i;
}