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" } */ 6 7 /* This test should succeed only on 64-bit configurations. */ 8 #include <altivec.h> 9 10 __ieee128 insert_exponent(unsigned __int128 * significand_p,unsigned long long int * exponent_p)11insert_exponent (unsigned __int128 *significand_p, 12 unsigned long long int *exponent_p) 13 { 14 unsigned __int128 significand = *significand_p; 15 unsigned long long int exponent = *exponent_p; 16 17 return __builtin_vec_scalar_insert_exp (significand, exponent); /* { dg-error "builtin function '__builtin_vsx_scalar_insert_exp_q' requires" } */ 18 } 19