| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 3 |
/* { dg-require-effective-target ilp32 } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 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 |
} |