]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, cmd/internal, runtime: change the registers used by the duff device...
authorGuoqi Chen <chenguoqi@loongson.cn>
Wed, 16 Aug 2023 19:58:10 +0000 (03:58 +0800)
committerDavid Chase <drchase@google.com>
Tue, 21 Nov 2023 17:42:40 +0000 (17:42 +0000)
commitf43581131e96f0a4a7745250218ace6c4ea2e557
tree507474291cee48d554e42efab0654f5bbc55f015
parent4f55a5af5e5d325a534222050564766c249218aa
cmd/compile, cmd/internal, runtime: change the registers used by the duff device for loong64

Add R21 to the allocatable registers, use R20 and R21 in duff
device. This CL is in preparation for subsequent regABI support.

Updates #40724

Co-authored-by: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
Change-Id: If1661adc0f766925fbe74827a369797f95fa28a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/521775
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/loong64/ssa.go
src/cmd/compile/internal/ssa/_gen/LOONG64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/internal/obj/loong64/a.out.go
src/runtime/duff_loong64.s
src/runtime/mkduff.go