]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't use MOVOstore for move on plan9/amd64
authorDavid du Colombier <0intro@gmail.com>
Sat, 26 Aug 2017 21:05:36 +0000 (23:05 +0200)
committerDavid du Colombier <0intro@gmail.com>
Mon, 28 Aug 2017 16:21:28 +0000 (16:21 +0000)
commitadbfdfe377fe4b0b4892db097f23f7e1249216cf
tree35409cb4dac7920f0732437a3a1534f79d4e0234
parentc875cea7ae174f723aed10ea31911cd7013ee261
cmd/compile: don't use MOVOstore for move on plan9/amd64

The SSA compiler currently generates MOVOstore instructions
to optimize 16 bytes moves on AMD64 architecture.

However, we can't use the MOVOstore instruction on Plan 9,
because floating point operations are not allowed in the
note handler.

We rely on the useSSE flag to disable the use of the
MOVOstore instruction on Plan 9 and replace it by two
MOVQstore instructions.

Fixes #21625

Change-Id: Idfefcceadccafe1752b059b5fe113ce566c0e71c
Reviewed-on: https://go-review.googlesource.com/59171
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
src/cmd/compile/internal/gc/asm_test.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go