https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129108

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-11-30

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed reporter's analysis on trunk. The issue is present since the 2007
libbid import in libgcc/config/libbid/bid_binarydecimal.c. Dropping the lower
128 bits before multiplying by 10 in binary{32,64,80,128}_to_bid128 causes
directed decimal rounding modes to produce results 1 ULP too small and set the
inexact flag for exact representable values. The proposed fix ports Intel's
upstream RDFP 2.0+ change (using srl384_short and __mul_10x384_to_384).

Reply via email to