1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
5 /* { dg-options "-mcpu=power9" } */
6
7 /* This test only runs on 32-bit configurations, where a compiler error
8 should be issued because this builtin is not available on
9 32-bit configurations. */
10
11 #include <altivec.h>
12
13 unsigned long long int
get_exponent(__ieee128 * p)14 get_exponent (__ieee128 *p)
15 {
16 __ieee128 source = *p;
17
18 return scalar_extract_exp (source); /* { dg-error "requires ISA 3.0 IEEE 128-bit floating point" } */
19 }
20
21
22