Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-2.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, producing a compiler
7 error because the builtin requires 64 bits. */
8 #include <altivec.h>
9
10 unsigned long long int
11 get_significand (double *p)
12 {
13 double source = *p;
14
15 return __builtin_vec_scalar_extract_sig (source); /* { dg-error "'__builtin_vsx_scalar_extract_sig' requires the" } */
16 }