• Michael Munday's avatar
    cmd/compile: fix store-to-load forwarding of 32-bit sNaNs · 48af3a8b
    Michael Munday authored
    Signalling NaNs were being converted to quiet NaNs during constant
    propagation through integer <-> float store-to-load forwarding.
    This occurs because we store float32 constants as float64
    values and CPU hardware 'quietens' NaNs during conversion between
    the two.
    
    Eventually we want to move to using float32 values to store float32
    constants, however this will be a big change since both the compiler
    and the assembler expect float64 values. So for now this is a small
    change that will fix the immediate issue.
    
    Fixes #27193.
    
    Change-Id: Iac54bd8c13abe26f9396712bc71f9b396f842724
    Reviewed-on: https://go-review.googlesource.com/132956
    Run-TryBot: Michael Munday <mike.munday@ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    48af3a8b
check.go 13.9 KB