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

3 files Authored by Sanjay Patel 3 years ago, Committed by Hans Wennborg 3 years ago,
    [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
    
    (cherry picked from commit e34bd1e0b03d20a506ada156d87e1b3a96d82fa2)
    
        
file modified
+15 -0