1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mpower9-vector -O2 -mabi=ibmlongdouble -Wno-psabi" } */
5 /* Make sure the old 'q' builtin functions work correctly when the long double
6 default uses the IBM double-double format. */
11 return __builtin_fabsq (a
);
15 do_copysign (_Float128 a
, _Float128 b
)
17 return __builtin_copysignq (a
, b
);
23 return __builtin_infq ();
29 return __builtin_nanq ("");
35 return __builtin_nansq ("");
41 return __builtin_huge_valq ();
44 /* { dg-final { scan-assembler {\mxsabsqp\M} } } */
45 /* { dg-final { scan-assembler {\mxscpsgnqp\M} } } */
46 /* { dg-final { scan-assembler-not {\mbl\M} } } */