summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
blob: 8a40ba1c6b7e68c36ab6df842d64b832790f4722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target mips*-*-* } } */

register unsigned int cp0count asm ("$c0r1");

int __attribute__ ((nomips16))
main (int argc, char *argv[])
{
  unsigned int d;

  d = cp0count + 3;
  printf ("%d\n", d);
}