HomePhabricator

[APFloat] prevent NaN morphing into Inf on conversion (PR43907)

Authored by spatel on Sep 24 2020, 10:44 AM.

Description

[APFloat] prevent NaN morphing into Inf on conversion (PR43907)

We shift the significand right on a truncation, but that needs to be made NaN-safe:
always set at least 1 bit in the significand.
https://llvm.org/PR43907

See D88238 for the likely follow-up (but needs some plumbing fixes before it can proceed).

Differential Revision: https://reviews.llvm.org/D87835

Details

Committed
spatelSep 24 2020, 11:02 AM
Differential Revision
D87835: [APFloat] prevent NaN morphing into Inf on conversion (PR43907)
Parents
rG03f22b08e2a3: [SLP] Remove LHS and RHS from OperationData.
Branches
Unknown
Tags
Unknown