mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile: fix the "always panic" code to actually panic
without this change, the intrinsics of non-constant immediates just substitute a zero, which is wrong. Change-Id: I2c39ebedcfb0d0d6c072f4434f393027c6f3f033 Reviewed-on: https://go-review.googlesource.com/c/go/+/685575 Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
1ee72a15a3
commit
72c39ef834
1 changed files with 1 additions and 1 deletions
|
|
@ -1636,7 +1636,7 @@ func opLen4(op ssa.Op, t *types.Type) func(s *state, n *ir.CallExpr, args []*ssa
|
|||
|
||||
func plainPanicSimdImm(s *state) {
|
||||
cmp := s.newValue0(ssa.OpConstBool, types.Types[types.TBOOL])
|
||||
cmp.AuxInt = 1
|
||||
cmp.AuxInt = 0
|
||||
// TODO: make this a standalone panic instead of reusing the overflow panic.
|
||||
// Or maybe after we implement the switch table this will be obsolete anyway.
|
||||
s.check(cmp, ir.Syms.Panicoverflow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue