mirror of
https://github.com/golang/go.git
synced 2026-02-07 02:09:55 +00:00
simd/archsimd/_gen/simdgen: fix typos in error messages
simdgen: fix typos in error messages
Change-Id: I921eea63c4847b2af43a1d5a1ea075e86f58aa77
GitHub-Last-Rev: 8c9dae51fd
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>
This commit is contained in:
parent
eaf6650c2b
commit
8e3104dc26
1 changed files with 3 additions and 3 deletions
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue