summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/oddspreg-1.c
blob: d44563d0860bb3555f24949336a6555ab78afd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Check that we enable odd-numbered single precision registers.  */
/* { dg-options "-mabi=32 -modd-spreg -mhard-float" } */

#if _MIPS_SPFPSET != 32
#error "Incorrect number of single-precision registers reported"
#endif

NOMIPS16 void
foo ()
{
  register float foo asm ("$f1");
  asm volatile ("" : "=f" (foo));
}