aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-05-08 15:08:55 -0400
committerCherry Zhang <cherryyz@google.com>2020-05-08 20:57:01 +0000
commitf1ac85c8d10e16fbc07e8b7ef93aa04bdc4c67e9 (patch)
treeda491b7f48dfc0a625fa08e3a670b574fdaa3247 /src/encoding/json/decode.go
parent7cbee1244437bafa1e52ca761d7c32d7587a9fdd (diff)
downloadgo-f1ac85c8d10e16fbc07e8b7ef93aa04bdc4c67e9.tar.xz
cmd/internal/obj/arm64: fix 32-bit BITCON test
The BITCON test, isbitcon, assumes 32-bit constants are expanded repeatedly, i.e. by copying the low 32 bits to high 32 bits, instead of zero extending. We already do such expansion in progedit. In con32class when classifying 32-bit constants, we should use the expanded constant, instead of zero-extending it. TODO: we could have better encoding for things like ANDW $-1, Rx. Fixes #38946. Change-Id: I37d0c95d744834419db5c897fd1f6c187595c926 Reviewed-on: https://go-review.googlesource.com/c/go/+/232984 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/encoding/json/decode.go')
0 files changed, 0 insertions, 0 deletions