]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: change register type for loong64 floating-point
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Wed, 3 Apr 2024 07:13:04 +0000 (15:13 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 29 Jul 2024 02:47:00 +0000 (02:47 +0000)
commitf95ae3d68989505fcac9ec23cacc03d602ec6739
tree47486a96eafcdcf29411b1a6dc66df726dc0efcc
parentaec5cc52add9d8da0b5ac4e51758d10ee35589db
cmd/asm: change register type for loong64 floating-point

On Loong64, the two input operands and one output operand of the ADDF
instruction are both floating-point registers; and the floating-point
comparison instruction CMPEQ{F,D}, CMPGE{F,D}, CMPGT{F,D} both input
operands are floating-point registers, and the output operation is a
floating-point condition register, currently, only FCC0 is used as the
floating-point condition register.

Example:
ADDF F0, F1, F0
CMPEQF F0, F1, FCC0

Change-Id: I4c1c453e522d43f294a8dcab7b6b5247f41c9c68
Reviewed-on: https://go-review.googlesource.com/c/go/+/580281
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/asm/internal/arch/loong64.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/compile/internal/loong64/ssa.go
src/cmd/internal/obj/loong64/asm.go