• 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
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
types Loading commit data...
wasm Loading commit data...
x86 Loading commit data...