Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Wayne Zuo <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
- Loading branch information