]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.8] cmd/compile: fix subword store/load elision for MIPS
authorCherry Zhang <cherryyz@google.com>
Wed, 31 May 2017 12:30:25 +0000 (08:30 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 18:56:49 +0000 (18:56 +0000)
commit82cfda2910242bb7933555defdcab1a5d90eeced
treeb66a3bd02c7e8266b3ddf53a4ea7731e91f3d982
parent9ccc2921ddee1791fe5d986750dd542a01eab234
[release-branch.go1.8] cmd/compile: fix subword store/load elision for MIPS

Apply the fix in CL 44355 to MIPS.

ARM64 has these rules but commented out for performance reason.
Fix the commented rules, in case they are enabled in the future.

Enhance the test so it triggers the failure on ARM and MIPS without
the fix.

Updates #20530.

Change-Id: I82d77448e3939a545fe519d0a29a164f8fa5417c
Reviewed-on: https://go-review.googlesource.com/44430
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-on: https://go-review.googlesource.com/70840
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/gen/MIPS.rules
src/cmd/compile/internal/ssa/rewriteMIPS.go
test/fixedbugs/issue20530.go