[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bfp / scalar-insert-exp-2.c
blobfeb943104dab95455e19b7c3d733c5930c0ac48d
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 double
13 insert_exponent (unsigned long long int *significand_p,
14 unsigned long long int *exponent_p)
16 unsigned long long int significand = *significand_p;
17 unsigned long long int exponent = *exponent_p;
19 return scalar_insert_exp (significand, exponent); /* { dg-error "'__builtin_vec_scalar_insert_exp' is not supported in this compiler configuration" } */