[RS6000] dg-do !compile and scan-assembler
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr82748-2.c
blob0079394b1016ef9df3993096aa6e7b5242293cf1
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. */
8 _Float128
9 do_fabs (_Float128 a)
11 return __builtin_fabsq (a);
14 _Float128
15 do_copysign (_Float128 a, _Float128 b)
17 return __builtin_copysignq (a, b);
20 _Float128
21 do_inf (void)
23 return __builtin_infq ();
26 _Float128
27 do_nan (void)
29 return __builtin_nanq ("");
32 _Float128
33 do_nans (void)
35 return __builtin_nansq ("");
38 _Float128
39 do_huge_val (void)
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} } } */