]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid more float32 <-> float64 conversions in compiler
authorMichael Munday <mike.munday@ibm.com>
Wed, 12 Sep 2018 11:16:50 +0000 (12:16 +0100)
committerMichael Munday <mike.munday@ibm.com>
Mon, 17 Sep 2018 14:37:45 +0000 (14:37 +0000)
commit2db1a7f929892695696eebf685fc484841c08cb4
tree36799ecb58734b34a8aafcbecd91f44bde676ceb
parent859cf7fc0f4535ab3cdec15c81860f5fd2ae5b01
cmd/compile: avoid more float32 <-> float64 conversions in compiler

Use the new custom truncate/extension code when storing or extracting
float32 values from AuxInts to avoid the value being changed by the
host platform's floating point conversion instructions (e.g. sNaN ->
qNaN).

Updates #27516.

Change-Id: Id39650f1431ef74af088c895cf4738ea5fa87974
Reviewed-on: https://go-review.googlesource.com/134855
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
12 files changed:
src/cmd/compile/internal/ssa/gen/386.rules
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewrite386.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssa/rewritePPC64.go
src/cmd/compile/internal/ssa/rewriteWasm.go
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/ssa/softfloat.go