| 1 |
/* { dg-do compile { target powerpc*-*-eabi* } } */ |
| 2 |
/* { dg-options "-O -ftrapping-math -fdump-rtl-final" } */ |
| 3 |
|
| 4 |
int isgreater (float f1, float f2) |
| 5 |
{ |
| 6 |
int r = (f1 > f2); |
| 7 |
return !r ? -1 : 1; |
| 8 |
} |
| 9 |
|
| 10 |
int isgreaterequal (float f1, float f2) |
| 11 |
{ |
| 12 |
int r = (f1 >= f2); |
| 13 |
return !r ? -1 : 1; |
| 14 |
} |
| 15 |
|
| 16 |
int isless (float f1, float f2) |
| 17 |
{ |
| 18 |
int r = (f1 < f2); |
| 19 |
return !r ? -1 : 1; |
| 20 |
} |
| 21 |
|
| 22 |
int islessequal (float f1, float f2) |
| 23 |
{ |
| 24 |
int r = (f1 <= f2); |
| 25 |
return !r ? -1 : 1; |
| 26 |
} |
| 27 |
|
| 28 |
/* { dg-final { scan-rtl-dump-not "__unordsf2" "final" } } */ |