]> Cypherpunks repositories - gostls13.git/commitdiff
simd/archsimd/_gen/simdgen: fix typos in error messages
authorjjpinto <jorgpinto@gmail.com>
Sat, 27 Dec 2025 14:09:40 +0000 (14:09 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 20:57:43 +0000 (12:57 -0800)
simdgen: fix typos in error messages

Change-Id: I921eea63c4847b2af43a1d5a1ea075e86f58aa77
GitHub-Last-Rev: 8c9dae51fd906aee04f52a5d44c6d4c923fc52d0
GitHub-Pull-Request: golang/go#77012
Reviewed-on: https://go-review.googlesource.com/c/go/+/732880
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/simd/archsimd/_gen/simdgen/gen_utility.go

index 50dcdd26184fb73248d8622e44e2225fbcf080f2..60d590060816654f8626b0ae0caecb8a1583c354 100644 (file)
@@ -157,7 +157,7 @@ func (op *Operation) shape() (shapeIn inShape, shapeOut outShape, maskType maskS
                        if shapeOut != OneVregOutAtIn && in.AsmPos == 0 && in.Class == "vreg" {
                                shapeOut = OneVregOutAtIn
                        } else {
-                               panic(fmt.Errorf("simdgen only support output and input sharing the same position case of \"the first input is vreg and the only output\": %s", op))
+                               panic(fmt.Errorf("simdgen only supports output and input sharing the same position case of \"the first input is vreg and the only output\": %s", op))
                        }
                }
                if in.Class == "immediate" {
@@ -204,7 +204,7 @@ func (op *Operation) shape() (shapeIn inShape, shapeOut outShape, maskType maskS
                        panic(fmt.Errorf("simdgen does not support immediates in pure mask operations: %s", op))
                }
                if hasVreg {
-                       panic(fmt.Errorf("simdgen does not support more than 1 masks in non-pure mask operations: %s", op))
+                       panic(fmt.Errorf("simdgen does not support more than 1 mask in non-pure mask operations: %s", op))
                }
                return false
        }
@@ -734,7 +734,7 @@ func overwrite(ops []Operation) error {
                        oBase := *op[idx].OverwriteBase
                        oClass := *op[idx].OverwriteClass
                        if oClass != "mask" {
-                               panic(fmt.Errorf("simdgen: [Class] overwrite only supports overwritting to mask: %s", op[idx]))
+                               panic(fmt.Errorf("simdgen: [Class] overwrite only supports overwriting to mask: %s", op[idx]))
                        }
                        if oBase != "int" {
                                panic(fmt.Errorf("simdgen: [Class] overwrite must set [OverwriteBase] to int: %s", op[idx]))