| 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, where a compiler error |
| 7 |
should be issued because this builtin is not available on |
| 8 |
32-bit configurations. */ |
| 9 |
|
| 10 |
#include <altivec.h> |
| 11 |
|
| 12 |
unsigned long long int |
| 13 |
get_exponent (__ieee128 *p) |
| 14 |
{ |
| 15 |
__ieee128 source = *p; |
| 16 |
|
| 17 |
return scalar_extract_exp (source); /* { dg-error "requires quad-precision floating-point arithmetic" } */ |
| 18 |
} |
| 19 |
|
| 20 |
|