8b72cec88d96ab4b01a8885ac24559fd88453acd
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
5 /* { dg-options "-mcpu=power8" } */
7 /* This test should succeed only on 64-bit configurations. */
11 insert_exponent (double *significand_p
,
12 unsigned long long int *exponent_p
)
14 double significand
= *significand_p
;
15 unsigned long long int exponent
= *exponent_p
;
17 return __builtin_vec_scalar_insert_exp (significand
, exponent
); /* { dg-error "Builtin function __builtin_vsx_scalar_insert_exp_dp requires" } */