| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mdejagnu-cpu=power9" } */ |
| 3 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 4 |
|
| 5 |
int test1 (double x) |
| 6 |
{ |
| 7 |
return __builtin_isinf (x); |
| 8 |
} |
| 9 |
|
| 10 |
int test2 (float x) |
| 11 |
{ |
| 12 |
return __builtin_isinf (x); |
| 13 |
} |
| 14 |
|
| 15 |
int test3 (float x) |
| 16 |
{ |
| 17 |
return __builtin_isinff (x); |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler-not {\mfcmp} } } */ |
| 21 |
/* { dg-final { scan-assembler-times {\mxststdcsp\M} 2 } } */ |
| 22 |
/* { dg-final { scan-assembler-times {\mxststdcdp\M} 1 } } */ |