Debian Codegraph @

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

raw
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-mdejagnu-cpu=power8 -mvsx" } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_vsx } */
5
6 /* This test should succeed only on 64-bit configurations. */
7 #include <altivec.h>
8
9 __ieee128
10 insert_exponent (unsigned __int128 *significand_p,
11 unsigned long long int *exponent_p)
12 {
13 unsigned __int128 significand = *significand_p;
14 unsigned long long int exponent = *exponent_p;
15
16 return __builtin_vec_scalar_insert_exp (significand, exponent); /* { dg-error "'__builtin_vsx_scalar_insert_exp_q' requires" } */
17 }