summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/madd4-2.c
blob: eb83023d33f3fa4e0c0b38860b5528b1c8fb4c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-ffast-math -mmadd4 (HAS_MADD4) -mhard-float" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler "\tmadd.s\t" } } */

#ifdef __mips_no_madd4
#error unexpected definition of __mips_no_madd4
#endif

NOMIPS16 float
madd4 (float f, float g, float h)
{
  return (f * g) + h;
}