aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/oddspreg-4.c
blob: 723424a39bd8327301a33a4da62db01d1ee4b754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Check that we disable odd-numbered single precision registers and can
   still generate code.  */
/* { dg-options "-mabi=32 -mno-odd-spreg -mhard-float" } */

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

float a;
float
foo ()
{
  float b = a + 1.0f;
  return b;
}