mirror of
https://github.com/golang/go
synced 2024-11-11 20:20:23 -07:00
test/codegen: fix wasm codegen breakage
i32.eqz instructions don't appear unless needed in if conditions anymore after CL 195204. I forgot to run the codegen tests while submitting the CL. Thanks to @martisch for catching it. Fixes #34442 Change-Id: I177b064b389be48e39d564849714d7a8839be13e Reviewed-on: https://go-review.googlesource.com/c/go/+/196580 Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com>
This commit is contained in:
parent
9c384cc570
commit
ecc7dd5469
@ -215,34 +215,34 @@ func CmpLogicalToZero(a, b, c uint32, d, e uint64) uint64 {
|
|||||||
|
|
||||||
// ppc64:"ANDCC",-"CMPW"
|
// ppc64:"ANDCC",-"CMPW"
|
||||||
// ppc64le:"ANDCC",-"CMPW"
|
// ppc64le:"ANDCC",-"CMPW"
|
||||||
// wasm:"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
// wasm:"I64Eqz",-"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
||||||
if a&63 == 0 {
|
if a&63 == 0 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// ppc64:"ANDCC",-"CMP"
|
// ppc64:"ANDCC",-"CMP"
|
||||||
// ppc64le:"ANDCC",-"CMP"
|
// ppc64le:"ANDCC",-"CMP"
|
||||||
// wasm:"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
// wasm:"I64Eqz",-"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
||||||
if d&255 == 0 {
|
if d&255 == 0 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// ppc64:"ANDCC",-"CMP"
|
// ppc64:"ANDCC",-"CMP"
|
||||||
// ppc64le:"ANDCC",-"CMP"
|
// ppc64le:"ANDCC",-"CMP"
|
||||||
// wasm:"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
// wasm:"I64Eqz",-"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
||||||
if d&e == 0 {
|
if d&e == 0 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
// ppc64:"ORCC",-"CMP"
|
// ppc64:"ORCC",-"CMP"
|
||||||
// ppc64le:"ORCC",-"CMP"
|
// ppc64le:"ORCC",-"CMP"
|
||||||
// wasm:"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
// wasm:"I64Eqz",-"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
||||||
if d|e == 0 {
|
if d|e == 0 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// ppc64:"XORCC",-"CMP"
|
// ppc64:"XORCC",-"CMP"
|
||||||
// ppc64le:"XORCC",-"CMP"
|
// ppc64le:"XORCC",-"CMP"
|
||||||
// wasm:"I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
// wasm:"I64Eqz","I32Eqz",-"I64ExtendI32U",-"I32WrapI64"
|
||||||
if e^d == 0 {
|
if e^d == 0 {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user