1 /* Make sure that we use abs.fmt and neg.fmt when the signs of NaNs don't
2    matter.  */
3 /* { dg-do compile } */
4 /* { dg-options "-mhard-float -ffinite-math-only" } */
5 /* { dg-final { scan-assembler "\tneg.s\t" } } */
6 /* { dg-final { scan-assembler "\tneg.d\t" } } */
7 /* { dg-final { scan-assembler "\tabs.s\t" } } */
8 /* { dg-final { scan-assembler "\tabs.d\t" } } */
9 
f1(float f)10 NOMIPS16 float f1 (float f) { return -f; }
f2(float f)11 NOMIPS16 float f2 (float f) { return __builtin_fabsf (f); }
d1(double d)12 NOMIPS16 double d1 (double d) { return -d; }
d2(double d)13 NOMIPS16 double d2 (double d) { return __builtin_fabs (d); }
14