1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9" } */
4 
5 #include <altivec.h>
6 
doTestBCDSignificance(_Decimal64 * p)7 int doTestBCDSignificance (_Decimal64 *p)
8 {
9   _Decimal64 source = *p;
10 
11   if (__builtin_dfp_dtstsfi_ov (63, source))
12     return 3;
13   else
14     return 5;
15 }
16 
17 /* { dg-final { scan-assembler	   "dtstsfi" } } */
18 
19