aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr97786-4.c
blob: 9cdde78257d0a5543b4de1893c621eaee3f1dbf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -mdejagnu-cpu=power9" } */
/* { dg-require-effective-target powerpc_vsx } */

int test1 (double x)
{
  return __builtin_isfinite (x);
}

int test2 (float x)
{
  return __builtin_isfinite (x);
}

/* { dg-final { scan-assembler-not {\mfcmp} } } */
/* { dg-final { scan-assembler-times {\mxststdcsp\M} 1 } } */
/* { dg-final { scan-assembler-times {\mxststdcdp\M} 1 } } */