1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-options "-mcpu=power8" } */
5 
6 #include <altivec.h>
7 #include <stdbool.h>
8 
9 bool
test_data_class(__ieee128 * p)10 test_data_class (__ieee128 *p)
11 {
12   __ieee128 source = *p;
13 
14   return __builtin_vec_scalar_test_data_class (source, 3); /* { dg-error "builtin function '__builtin_vsx_scalar_test_data_class_qp' requires" } */
15 }
16