blob: 13c64fc3acfefc1feaa4ea7a42523a5520a72232 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mdejagnu-cpu=power9" } */
/* This test only runs on 32-bit configurations, producing a compiler
error because the builtin requires 64 bits. */
#include <altivec.h>
unsigned long long int
get_significand (__ieee128 *p)
{
__ieee128 source = *p;
return (long long int) __builtin_vec_scalar_extract_sig (source); /* { dg-error "requires ISA 3.0 IEEE 128-bit floating point" } */
}