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 __ieee128
insert_exponent(unsigned __int128 * significand_p,unsigned long long int * exponent_p)11 insert_exponent (unsigned __int128 *significand_p,
12 		 unsigned long long int *exponent_p)
13 {
14   unsigned __int128 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 "xsiexpqp" } } */
21