1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-require-effective-target ppc_float128_sw } */
4 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2 -mfloat128" } */
6 int do_signbit_kf (__float128
*a
) { return __builtin_signbit (*a
); }
8 /* { dg-final { scan-assembler-not "stxvd2x" } } */
9 /* { dg-final { scan-assembler-not "stxvw4x" } } */
10 /* { dg-final { scan-assembler-not "stxsd" } } */
11 /* { dg-final { scan-assembler-not "stxsdx" } } */
12 /* { dg-final { scan-assembler-not "lxvd2x" } } */
13 /* { dg-final { scan-assembler-not "lxvw4x" } } */
14 /* { dg-final { scan-assembler-not "lxsd" } } */
15 /* { dg-final { scan-assembler-not "lxsdx" } } */
16 /* { dg-final { scan-assembler-times "ld" 1 { target lp64 } } } */
17 /* { dg-final { scan-assembler-times "srdi" 1 { target lp64 } } } */
18 /* { dg-final { scan-assembler-times "lwz" 1 { target ilp32 } } } */
19 /* { dg-final { scan-assembler-times "rlwinm" 1 { target ilp32 } } } */