]> Cypherpunks repositories - gostls13.git/commit
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)
committerCherry Zhang <cherryyz@google.com>
Wed, 31 May 2017 14:44:02 +0000 (14:44 +0000)
commit1e0819101b476f807bf8ef3fd50f1ee26691f33e
tree6db53dbf4db9e3e0f77f0d0b5ade3fb97dc2f162
parent1948b7f8069d881822bf700185dd19dcb4b14482
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