1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-skip-if "" { powerpc*-*-aix* } } */
5 /* { dg-options "-mcpu=power9" } */
6 
7 /* This test should succeed on both 32- and 64-bit configurations.  */
8 #include <altivec.h>
9 
doTestBCDSignificance(_Decimal64 * p)10 int doTestBCDSignificance (_Decimal64 *p)
11 {
12   _Decimal64 source = *p;
13 
14   return __builtin_dfp_dtstsfi_ov (5, source);
15 }
16 
17 /* { dg-final { scan-assembler	   "dtstsfi" } } */
18