(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
bfp/
scalar-insert-exp-4.c
       1  /* { dg-do compile { target { powerpc*-*-* } } } */
       2  /* { dg-require-effective-target lp64 } */
       3  /* { dg-require-effective-target powerpc_p9vector_ok } */
       4  /* { dg-options "-mdejagnu-cpu=power8" } */
       5  
       6  /* This test should succeed only on 64-bit configurations.  */
       7  #include <altivec.h>
       8  
       9  double
      10  insert_exponent (double *significand_p,
      11  		 unsigned long long int *exponent_p)
      12  {
      13    double significand = *significand_p;
      14    unsigned long long int exponent = *exponent_p;
      15  
      16    return __builtin_vec_scalar_insert_exp (significand, exponent); /* { dg-error "'__builtin_vsx_scalar_insert_exp_dp' requires" } */
      17  }