aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2021-03-21 00:58:18 +1100
committerJoel Sing <joel@sing.id.au>2021-03-22 16:13:55 +0000
commit8fd0f83552d3ef9ca38c031bec93a36b189e3e11 (patch)
treef40b109d5135c9a47693093bb9efa7e6f0e3fd3b /src/os/exec/exec_test.go
parent5437b5a24ba52c06d7ff627f01ed1876558959d2 (diff)
downloadgo-8fd0f83552d3ef9ca38c031bec93a36b189e3e11.tar.xz
cmd/compile/internal/ssa: correct sign extension for consts on riscv64
Correct sign extension handling for consts on riscv64. This fixes a bug in part exposed by CL 302609 - previously 64 bit consts were rewritten into multiple 32 bit consts and the expansion would result in sign/zero extension not being eliminated. With this change a MOVDconst with a 64 bit value can be followed by a MOV{B,H,W}reg, which will be eliminated without actually truncating to a smaller value. Change-Id: I8d9cd380217466997b341e008a1f139bc11a0d51 Reviewed-on: https://go-review.googlesource.com/c/go/+/303350 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions