(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
bfp/
scalar-extract-sig-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, producing a compiler
       7     error because the builtin requires 64 bits.  */
       8  #include <altivec.h>
       9  
      10  unsigned long long int
      11  get_significand (__ieee128 *p)
      12  {
      13    __ieee128 source = *p;
      14  
      15    return (long long int) __builtin_vec_scalar_extract_sig (source); /* { dg-error "requires quad-precision floating-point arithmetic" } */
      16  }