[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bfp / vec-test-data-class-2.c
blobf60a148cdb1ce5896a9277e0fd9e6f08fc171fb4
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" } */
6 #include <altivec.h>
8 __vector bool long long int
9 get_data_class_flags (__vector double *p)
11 __vector double source = *p;
13 return __builtin_vec_test_data_class (source, 0x37); /* { dg-error "builtin function __builtin_vsx_test_data_class_dp requires" } */