[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr92661.c
blobd9500dbfdb71e23c5effd8e25fe65f96d6d046d5
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. */
8 int
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. */
15 int
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);