]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't use FMA on plan9
authorsmasher164 <aindurti@gmail.com>
Tue, 22 Oct 2019 14:09:55 +0000 (10:09 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 22 Oct 2019 19:36:42 +0000 (19:36 +0000)
commit03fb1f607b54b0c14b6e4ca04b569ec47dd127f9
tree8c55cec54e3e939b51fbdc1f01da711a211f6f03
parent48eb79ec2197aeea0eb43597b00cad1ebcad61d2
cmd/compile: don't use FMA on plan9

CL 137156 introduces an intrinsic on AMD64 that executes vfmadd231sd
when feature detection is successful. However, because floating-point
isn't allowed in note handler, the builder disables SSE instructions,
and fails when attempting to execute this instruction. This change
disables FMA on plan9 to immediately use the software fallback.

Fixes #35063.

Change-Id: I87d8f0995bd2f15013d203e618938f5079c9eed2
Reviewed-on: https://go-review.googlesource.com/c/go/+/202617
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/config.go