| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* Require 64-bit target to select expected error message below. 32-bit |
| 3 |
target produces different error message. */ |
| 4 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 5 |
/* { dg-require-effective-target lp64 } */ |
| 6 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 7 |
|
| 8 |
#include <altivec.h> |
| 9 |
#include <stdbool.h> |
| 10 |
|
| 11 |
bool |
| 12 |
test_data_class (__ieee128 *p, const int condition_flag) |
| 13 |
{ |
| 14 |
__ieee128 source = *p; |
| 15 |
|
| 16 |
return scalar_test_data_class (source, condition_flag); /* { dg-error "argument 2 must be a literal between 0 and 127, inclusive" } */ |
| 17 |
} |
| 18 |
|