1
0
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:
Luo Jia 2022-04-10 11:15:49 +08:00 committed by GitHub
parent db7183ccf9
commit 26b5c75530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,