| /* Make sure that we use abs.fmt and neg.fmt when the signs of NaNs don't |
| matter. */ |
| /* { dg-do compile } */ |
| /* { dg-options "-mhard-float -ffinite-math-only" } */ |
| /* { dg-final { scan-assembler "\tneg.s\t" } } */ |
| /* { dg-final { scan-assembler "\tneg.d\t" } } */ |
| /* { dg-final { scan-assembler "\tabs.s\t" } } */ |
| /* { dg-final { scan-assembler "\tabs.d\t" } } */ |
| |
| NOMIPS16 float f1 (float f) { return -f; } |
| NOMIPS16 float f2 (float f) { return __builtin_fabsf (f); } |
| NOMIPS16 double d1 (double d) { return -d; } |
| NOMIPS16 double d2 (double d) { return __builtin_fabs (d); } |