1 /* { dg-do compile } */
2 /* { dg-options "-w -O2 -mdejagnu-cpu=power9" } */
4 /* PR92661: The following tests should not ICE, regardless of
5 whether the target supports DFP or not. */
7 /* Test that a normal builtin function doesn't ICE. */
9 foo (_Decimal64 src
) /* { dg-error "decimal floating-point not supported for this target" "not supported" { target { ! dfp } } } */
11 return __builtin_dfp_dtstsfi_lt_dd (5, src
);
14 /* Test that an overloaded builtin function doesn't ICE. */
16 bar (_Decimal64 src
) /* { dg-error "decimal floating-point not supported for this target" "not supported" { target { ! dfp } } } */
18 return __builtin_dfp_dtstsfi_lt (5, src
);