| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 3 |
/* { dg-require-effective-target lp64 } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
|
| 6 |
#include <altivec.h> |
| 7 |
#include <stdbool.h> |
| 8 |
|
| 9 |
bool |
| 10 |
test_data_class (__ieee128 *p) |
| 11 |
{ |
| 12 |
__ieee128 source = *p; |
| 13 |
|
| 14 |
/* IEEE 128-bit floating point operations are only supported |
| 15 |
on 64-bit targets. */ |
| 16 |
return scalar_test_data_class (source, 256); /* { dg-error "argument 2 must be a literal between 0 and 127, inclusive" } */ |
| 17 |
} |
| 18 |
|