Skip to content
  • Peter Maydell's avatar
    softfloat: Fix single-to-half precision float conversions · 600e30d2
    Peter Maydell authored
    
    
    Fix various bugs in the single-to-half-precision conversion code:
     * input NaNs not correctly converted in IEEE mode
       (fixed by defining and using a commonNaNToFloat16())
     * wrong values returned when converting NaN/Inf into non-IEEE
       half precision value
     * wrong values returned for conversion of values which are
       on the boundary between denormal and zero for the half
       precision format
     * zeroes not correctly identified
     * excessively large results in non-IEEE mode should
       generate InvalidOp, not Overflow
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    600e30d2