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
get_significand(__ieee128 * p)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 ISA 3.0 IEEE 128-bit floating point" } */
16 }
17