aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2024-11-20 21:56:27 +0800
committerGopher Robot <gobot@golang.org>2024-11-21 22:16:20 +0000
commita925402b62c06d1cfe2b345cba0b11fa06b8401d (patch)
tree3d91369411c3148ade70b21da8d01f7f0dcec655 /src/cmd/internal/obj
parent154fb4e1d45e503658542dee5296243a6146e7ca (diff)
downloadgo-a925402b62c06d1cfe2b345cba0b11fa06b8401d.tar.xz
all: fix some function names and typos in comment
Change-Id: I07e7c8eaa5bd4bac0d576b2f2f4cd3f81b0b77a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/630055 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Russ Cox <rsc@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/internal/obj')
-rw-r--r--src/cmd/internal/obj/ppc64/asm9.go2
-rw-r--r--src/cmd/internal/obj/util.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/obj/ppc64/asm9.go b/src/cmd/internal/obj/ppc64/asm9.go
index b30976c85d..9cba8c33ce 100644
--- a/src/cmd/internal/obj/ppc64/asm9.go
+++ b/src/cmd/internal/obj/ppc64/asm9.go
@@ -2520,7 +2520,7 @@ func decodeMask64(mask int64) (mb, me uint32, valid bool) {
func loadl16(r int, d int64) uint32 {
v := uint16(d)
if v == 0 {
- // Avoid generating "ori r,r,0", r != 0. Instead, generate the architectually preferred nop.
+ // Avoid generating "ori r,r,0", r != 0. Instead, generate the architecturally preferred nop.
// For example, "ori r31,r31,0" is a special execution serializing nop on Power10 called "exser".
return NOP
}
diff --git a/src/cmd/internal/obj/util.go b/src/cmd/internal/obj/util.go
index dfbb636766..26de22122a 100644
--- a/src/cmd/internal/obj/util.go
+++ b/src/cmd/internal/obj/util.go
@@ -717,7 +717,7 @@ func AlignmentPaddingLength(pc int32, p *Prog, ctxt *Link) int {
// emit as many as s bytes of padding to obtain alignment
s := p.To.Offset
if s < 0 || s >= a {
- ctxt.Diag("PCALIGNMAX 'amount' %d must be non-negative and smaller than the aligment %d\n", s, a)
+ ctxt.Diag("PCALIGNMAX 'amount' %d must be non-negative and smaller than the alignment %d\n", s, a)
return 0
}
if s >= a-lob {