(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
bfp/
scalar-extract-exp-5.c
       1  /* { dg-do compile { target { powerpc*-*-* } } } */
       2  /* { dg-require-effective-target ilp32 } */
       3  /* { dg-require-effective-target powerpc_p9vector_ok } */
       4  /* { dg-options "-mdejagnu-cpu=power9" } */
       5  
       6  /* This test only runs on 32-bit configurations, where a compiler error
       7     should be issued because this builtin is not available on
       8     32-bit configurations.  */
       9  
      10  #include <altivec.h>
      11  
      12  unsigned long long int
      13  get_exponent (__ieee128 *p)
      14  {
      15    __ieee128 source = *p;
      16  
      17    return scalar_extract_exp (source);	/* { dg-error "requires quad-precision floating-point arithmetic" } */
      18  }
      19  
      20