gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-5.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 3 | /* { dg-require-effective-target powerpc_vsx } */ |
| 4 | |
| 5 | /* This test should succeed on both 32- and 64-bit configurations. */ |
| 6 | #include <altivec.h> |
| 7 | |
| 8 | int doTestBCDSignificance (_Decimal128 *p) |
| 9 | { |
| 10 | _Decimal128 source = *p; |
| 11 | |
| 12 | return __builtin_dfp_dtstsfi_lt (5, source); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler "dtstsfiq" } } */ |
| 16 |