https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122952
Bug ID: 122952
Summary: __rintn and __rintnf should be supported
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
From
https://arm-software.github.io/acle/main/acle.html#floating-point-data-processing-intrinsics:
float __rintnf (float);
double __rintn (double);
The __rintn intrinsics perform a floating point round to integral, to nearest
with ties to even. The __rintn intrinsic is available when
__ARM_FEATURE_DIRECTED_ROUNDING is defined to 1. For other rounding modes like
|lsquo| to nearest with ties to away |rsquo| it is strongly recommended that
C99 standard functions be used. To achieve a floating point convert to integer,
rounding to |lsquo| nearest with ties to even |rsquo| operation, use these
rounding functions with a type-cast to integral values.