]> 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>
Fri, 20 Oct 2017 16:34:41 +0000 (12:34 -0400)
commitb571ae17ecf8833822e12fe477d4eac5f24cd0ae
treeb66a3bd02c7e8266b3ddf53a4ea7731e91f3d982
parent6643c252bf235fe87ac4c79b621f19ef14faa8a2
[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>
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