gcc/testsuite/gcc.target/powerpc/pr97786-7.c
raw| 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_isnormal (x); |
| 8 | } |
| 9 | |
| 10 | int test2 (float x) |
| 11 | { |
| 12 | return __builtin_isnormal (x); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-not {\mfcmp} } } */ |
| 16 | /* { dg-final { scan-assembler-times {\mxststdcsp\M} 1 } } */ |
| 17 | /* { dg-final { scan-assembler-times {\mxststdcdp\M} 1 } } */ |