[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bfp / scalar-extract-sig-5.c
blob13c64fc3acfefc1feaa4ea7a42523a5520a72232
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" } */
6 /* This test only runs on 32-bit configurations, producing a compiler
7 error because the builtin requires 64 bits. */
8 #include <altivec.h>
10 unsigned long long int
11 get_significand (__ieee128 *p)
13 __ieee128 source = *p;
15 return (long long int) __builtin_vec_scalar_extract_sig (source); /* { dg-error "requires ISA 3.0 IEEE 128-bit floating point" } */