aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/oddspreg-5.c
blob: 2d1b12969f2bb4cd0249b15cd8dfff7041476ccf (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=64 -mno-odd-spreg -mhard-float" } */

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

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