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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed reporter's analysis on trunk (r17-6830-ga5b69d4d24d) and GCC 15 at
-O2. When converting _Decimal128 to _Float128 for subnormals in [2^-16446,
2^-16445), d reaches 64 and becomes 0 after word shifts, causing srl256 to
shift by 64 - d = 64 bits on 64-bit unsigned words (undefined behavior). The
proposed fix ports Intel's upstream RDFP 2.0+ change by guarding srl256 with
`if (d > 0)`.

Reply via email to