aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/no-dsp-1.c
blob: f03f2393777c85d4f46d8670e78384225dfc2e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-options "-mno-dsp -ffat-lto-objects" } */
/* This is testing for errors which can only happen in assembly generation.
   dg-error does not guarantee assembly generation, so we need to do it
   manually by using -ffat-lto-objects.  */

void
foo (void)
{
  register int x asm ("$ac1hi"); /* { dg-error "cannot be accessed" } */
  asm volatile ("" : "=r" (x));
}