Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-8.c

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