aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-03-11 22:26:39 +0800
committerM Zhuo <mzh@golangcn.org>2023-03-15 07:18:43 +0000
commit7789966286a97c2e60140c7108c6df8238436dbe (patch)
treedc94c44e43ef7abd03182f0db6daad3b25f65997 /src/encoding/json/encode.go
parentb5c8ae9816e705f2202242de9d570a33dabd3a0a (diff)
downloadgo-7789966286a97c2e60140c7108c6df8238436dbe.tar.xz
cmd/compile/internal, runtime: use NOOP for hardware NOPs on loong64
The canonical LoongArch NOP instruction form is "andi r0, r0, 0", as described in the LoongArch Reference Manual Volume 1, Section 2.2.1.10. We currently use NOR instead, which may or may not change anything (e.g. performance on less capable micro-architectures) but is deviation from upstream standards nevertheless. Fix them to use the explicit hardware NOP which happens to be supported as `NOOP`. Change-Id: I0a799a1da959e9c3b582feb88202df2bab0ab23a Reviewed-on: https://go-review.googlesource.com/c/go/+/475615 Reviewed-by: abner chenc <chenguoqi@loongson.cn> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions