| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-w -O2 -mdejagnu-cpu=power9" } */ |
| 3 |
|
| 4 |
/* PR92661: The following tests should not ICE, regardless of |
| 5 |
whether the target supports DFP or not. */ |
| 6 |
|
| 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 } } } */ |
| 10 |
{ |
| 11 |
return __builtin_dfp_dtstsfi_lt_dd (5, src); |
| 12 |
} |
| 13 |
|
| 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 } } } */ |
| 17 |
{ |
| 18 |
return __builtin_dfp_dtstsfi_lt (5, src); |
| 19 |
} |