mirror of
https://github.com/golang/go
synced 2024-11-21 21:54:40 -07:00
compile: X1 is named as RA under RISC-V, not LR
Ref: https://github.com/riscv-non-isa/riscv-asm-manual/blob/master/riscv-asm.md#general-registers This commit does not modify any working code, it only alter one line of comment to enhance readability.
This commit is contained in:
parent
db7183ccf9
commit
26b5c75530
@ -18,7 +18,7 @@ import (
|
||||
// ssaRegToReg maps ssa register numbers to obj register numbers.
|
||||
var ssaRegToReg = []int16{
|
||||
riscv.REG_X0,
|
||||
// X1 (LR): unused
|
||||
// X1 (ra): unused
|
||||
riscv.REG_X2,
|
||||
riscv.REG_X3,
|
||||
riscv.REG_X4,
|
||||
|
Loading…
Reference in New Issue
Block a user