Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-5.c

raw
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { has_arch_ppc64 } } */
3 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
4 /* { dg-require-effective-target powerpc_vsx } */
5
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. */
9
10 #include <altivec.h>
11
12 double
13 insert_exponent (double *significand_p,
14 unsigned long long int *exponent_p)
15 {
16 double significand = *significand_p;
17 unsigned long long int exponent = *exponent_p;
18
19 return scalar_insert_exp (significand, exponent); /* { dg-error "'__builtin_vsx_scalar_insert_exp_dp' requires the" } */
20 }