blob: 0079394b1016ef9df3993096aa6e7b5242293cf1 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mpower9-vector -O2 -mabi=ibmlongdouble -Wno-psabi" } */
/* Make sure the old 'q' builtin functions work correctly when the long double
default uses the IBM double-double format. */
_Float128
do_fabs (_Float128 a)
{
return __builtin_fabsq (a);
}
_Float128
do_copysign (_Float128 a, _Float128 b)
{
return __builtin_copysignq (a, b);
}
_Float128
do_inf (void)
{
return __builtin_infq ();
}
_Float128
do_nan (void)
{
return __builtin_nanq ("");
}
_Float128
do_nans (void)
{
return __builtin_nansq ("");
}
_Float128
do_huge_val (void)
{
return __builtin_huge_valq ();
}
/* { dg-final { scan-assembler {\mxsabsqp\M} } } */
/* { dg-final { scan-assembler {\mxscpsgnqp\M} } } */
/* { dg-final { scan-assembler-not {\mbl\M} } } */