Skip to content

Commit 9010b8b

Browse files
jjpintorafael2k
authored andcommitted
simd/archsimd/_gen/simdgen: fix typos in error messages
simdgen: fix typos in error messages Change-Id: I921eea63c4847b2af43a1d5a1ea075e86f58aa77 GitHub-Last-Rev: 8c9dae5 GitHub-Pull-Request: golang#77012 Reviewed-on: https://go-review.googlesource.com/c/go/+/732880 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent 919d22d commit 9010b8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/simd/archsimd/_gen/simdgen/gen_utility.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (op *Operation) shape() (shapeIn inShape, shapeOut outShape, maskType maskS
157157
if shapeOut != OneVregOutAtIn && in.AsmPos == 0 && in.Class == "vreg" {
158158
shapeOut = OneVregOutAtIn
159159
} else {
160-
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))
160+
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))
161161
}
162162
}
163163
if in.Class == "immediate" {
@@ -204,7 +204,7 @@ func (op *Operation) shape() (shapeIn inShape, shapeOut outShape, maskType maskS
204204
panic(fmt.Errorf("simdgen does not support immediates in pure mask operations: %s", op))
205205
}
206206
if hasVreg {
207-
panic(fmt.Errorf("simdgen does not support more than 1 masks in non-pure mask operations: %s", op))
207+
panic(fmt.Errorf("simdgen does not support more than 1 mask in non-pure mask operations: %s", op))
208208
}
209209
return false
210210
}
@@ -734,7 +734,7 @@ func overwrite(ops []Operation) error {
734734
oBase := *op[idx].OverwriteBase
735735
oClass := *op[idx].OverwriteClass
736736
if oClass != "mask" {
737-
panic(fmt.Errorf("simdgen: [Class] overwrite only supports overwritting to mask: %s", op[idx]))
737+
panic(fmt.Errorf("simdgen: [Class] overwrite only supports overwriting to mask: %s", op[idx]))
738738
}
739739
if oBase != "int" {
740740
panic(fmt.Errorf("simdgen: [Class] overwrite must set [OverwriteBase] to int: %s", op[idx]))

0 commit comments

Comments
 (0)