]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64, cmd/asm: remove invalid optab items
authorlimeidan <limeidan@loongson.cn>
Thu, 11 Jan 2024 07:04:45 +0000 (15:04 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 29 Jul 2024 14:29:30 +0000 (14:29 +0000)
commit33b247437f871a850a778dc214245ba5d1a0c9a0
tree88124d3d29c35c5bf854bd709d6b4ff0464875ec
parentf7ec58b2fcf0677678aac8f939b055c6e4ef8c7d
cmd/internal/obj/loong64, cmd/asm: remove invalid optab items

Cases 27 and 28 are used to handle floating point operations, MOVW is usually
used for integer processing, and, in two cases there is code like this:
a :=AMOVF
if p.As == AMOVD {
        a=AMOVD
}
This means that MOVW was eventually replaced by MOVF, so removed MOVW from cases 27 and 28.

Change-Id: Ib438febab88058e98b569e0dfe70b8610668ee31
Reviewed-on: https://go-review.googlesource.com/c/go/+/565622
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/asm/internal/asm/testdata/loong64enc3.s
src/cmd/internal/obj/loong64/asm.go