[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bfp / scalar-extract-exp-2.c
blob922180675fc279e6bdd3fbdea1fcf04cdd83cb34
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-options "-mdejagnu-cpu=power9" } */
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. */
10 #include <altivec.h>
12 unsigned int
13 get_exponent (double *p)
15 double source = *p;
17 return scalar_extract_exp (source); /* { dg-error "'__builtin_vec_scalar_extract_exp' is not supported in this compiler configuration" } */