Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr97786-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ppc_float128_hw } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power9 -mabi=ieeelongdouble -Wno-psabi" } */
4 /* { dg-require-effective-target powerpc_vsx } */
5
6 int test1 (long double x)
7 {
8 return __builtin_isinf (x);
9 }
10
11 int test2 (long double x)
12 {
13 return __builtin_isinfl (x);
14 }
15
16 /* { dg-final { scan-assembler-not {\mxscmpuqp\M} } } */
17 /* { dg-final { scan-assembler-times {\mxststdcqp\M} 2 } } */