]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj/riscv: fix comment typo
authorWayne Zuo <wdvxdr@golangcn.org>
Fri, 2 Sep 2022 14:26:05 +0000 (22:26 +0800)
committerJoel Sing <joel@sing.id.au>
Fri, 2 Sep 2022 19:32:40 +0000 (19:32 +0000)
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>
src/cmd/internal/obj/riscv/obj.go

index 34aa923f4abd33ce5fc8ce3953c314b3e36f301a..95cd3659e8624b6b5eec4117eaafaf30b76b0385 100644 (file)
@@ -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}