]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use correct type in amd64 late-lower rules
authorDavid Chase <drchase@google.com>
Wed, 5 Apr 2023 19:49:07 +0000 (15:49 -0400)
committerDavid Chase <drchase@google.com>
Thu, 6 Apr 2023 13:59:24 +0000 (13:59 +0000)
commitf9cf2c4d0424e352f30d50b89d50eafbfb6fc019
treebf2e74538b166ba80d5238ad266b8adde5b7ccaf
parent8d68b388d4d1debec8d349adac58dd9f1cb03d25
cmd/compile: use correct type in amd64 late-lower rules

The wrong type causes the wrong width spill, which corrupts
the value.  I tried to write a test for this and did not
succeed, but was able (using gossahash and ssa.html) to
isolate to exact change and spill.

Fixes #59432.

Change-Id: I85ad82c9f8fed7674c69d6a2b0a62e111f690454
Reviewed-on: https://go-review.googlesource.com/c/go/+/482536
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ssa/_gen/AMD64latelower.rules
src/cmd/compile/internal/ssa/rewriteAMD64latelower.go