Skip to content

Commit

Permalink
cmd/internal/obj/riscv: fix comment typo
Browse files Browse the repository at this point in the history
Change-Id: Ica74977898f0af8c9abf42a003d8f02dbdc03d34
Reviewed-on: https://go-review.googlesource.com/c/go/+/427994
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Joel Sing <[email protected]>
Run-TryBot: Wayne Zuo <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
Reviewed-by: Heschi Kreinick <[email protected]>
  • Loading branch information
wdvxdr1123 authored and 4a6f656c committed Sep 2, 2022
1 parent 0fda8b1 commit b226cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/riscv/obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b226cc5

Please sign in to comment.