1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
5 /* { dg-options "-mcpu=power9" } */
6
7 /* This test should succeed only on 64-bit configurations. */
8 #include <altivec.h>
9
10 double
insert_exponent(unsigned long long int * significand_p,unsigned long long int * exponent_p)11 insert_exponent (unsigned long long int *significand_p,
12 unsigned long long int *exponent_p)
13 {
14 unsigned long long int significand = *significand_p;
15 unsigned long long int exponent = *exponent_p;
16
17 return scalar_insert_exp (significand, exponent);
18 }
19
20 /* { dg-final { scan-assembler "xsiexpdp" } } */
21