]> Cypherpunks repositories - gostls13.git/commitdiff
cmd: fix some comments
authorcui fliter <imcusg@gmail.com>
Sat, 2 Sep 2023 16:08:17 +0000 (00:08 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 2 Sep 2023 22:09:21 +0000 (22:09 +0000)
Change-Id: I8b3eb51e31139314d222d796b56ab7d42338797f
Reviewed-on: https://go-review.googlesource.com/c/go/+/525315
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Auto-Submit: Keith Randall <khr@golang.org>

src/cmd/compile/internal/ssa/_gen/ARM64Ops.go
src/cmd/compile/internal/ssa/_gen/rulegen.go
src/cmd/internal/obj/x86/asm6.go

index 3ded6e7a550aeb2860c13d4def54c57a5b19088e..5a98aa0c5424ad2650b75e60eb40e29cb565d4f8 100644 (file)
@@ -196,9 +196,9 @@ func init() {
                {name: "MULL", argLength: 2, reg: gp21, asm: "SMULL", commutative: true},                                      // arg0 * arg1, signed, 32-bit mult results in 64-bit
                {name: "UMULL", argLength: 2, reg: gp21, asm: "UMULL", commutative: true},                                     // arg0 * arg1, unsigned, 32-bit mult results in 64-bit
                {name: "DIV", argLength: 2, reg: gp21, asm: "SDIV"},                                                           // arg0 / arg1, signed
-               {name: "UDIV", argLength: 2, reg: gp21, asm: "UDIV"},                                                          // arg0 / arg1, unsighed
+               {name: "UDIV", argLength: 2, reg: gp21, asm: "UDIV"},                                                          // arg0 / arg1, unsigned
                {name: "DIVW", argLength: 2, reg: gp21, asm: "SDIVW"},                                                         // arg0 / arg1, signed, 32 bit
-               {name: "UDIVW", argLength: 2, reg: gp21, asm: "UDIVW"},                                                        // arg0 / arg1, unsighed, 32 bit
+               {name: "UDIVW", argLength: 2, reg: gp21, asm: "UDIVW"},                                                        // arg0 / arg1, unsigned, 32 bit
                {name: "MOD", argLength: 2, reg: gp21, asm: "REM"},                                                            // arg0 % arg1, signed
                {name: "UMOD", argLength: 2, reg: gp21, asm: "UREM"},                                                          // arg0 % arg1, unsigned
                {name: "MODW", argLength: 2, reg: gp21, asm: "REMW"},                                                          // arg0 % arg1, signed, 32 bit
index 15be9a1c506231043fb74459404294f526097bfb..072df298f370d8c27a427e037963526924ba24c7 100644 (file)
@@ -1400,7 +1400,7 @@ func parseValue(val string, arch arch, loc string) (op opData, oparch, typ, auxi
        if op.name == "" {
                // Failed to find the op.
                // Run through everything again with strict=false
-               // to generate useful diagnosic messages before failing.
+               // to generate useful diagnostic messages before failing.
                for _, x := range genericOps {
                        match(x, false, "generic")
                }
index 5e988eaf48a2200161a14e107e32179482516a1e..bdd75b4ef884c5cbc41eeb4b239ceda3531cabeb 100644 (file)
@@ -301,7 +301,7 @@ const (
        Py   = 0x80 // defaults to 64-bit mode
        Py1  = 0x81 // symbolic; exact value doesn't matter
        Py3  = 0x83 // symbolic; exact value doesn't matter
-       Pavx = 0x84 // symbolic: exact value doesn't matter
+       Pavx = 0x84 // symbolic; exact value doesn't matter
 
        RxrEvex = 1 << 4 // AVX512 extension to REX.R/VEX.R
        Rxw     = 1 << 3 // =1, 64-bit operand size