mirror of
https://github.com/golang/go
synced 2024-11-11 19:21:37 -07:00
cmd/internal/obj/riscv: fix comment typo
Change-Id: Ica74977898f0af8c9abf42a003d8f02dbdc03d34 Reviewed-on: https://go-review.googlesource.com/c/go/+/427994 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Joel Sing <joel@sing.id.au> Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
parent
0fda8b1932
commit
b226cc5ca0
@ -1715,7 +1715,7 @@ func instructionsForOpImmediate(p *obj.Prog, as obj.As, rs int16) []*instruction
|
||||
}
|
||||
|
||||
// LUI $high, TMP
|
||||
// ADDI $low, TMP, TMP
|
||||
// ADDIW $low, TMP, TMP
|
||||
// <op> TMP, REG, TO
|
||||
insLUI := &instruction{as: ALUI, rd: REG_TMP, imm: high}
|
||||
insADDIW := &instruction{as: AADDIW, rd: REG_TMP, rs1: REG_TMP, imm: low}
|
||||
|
Loading…
Reference in New Issue
Block a user