mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile: fix opLen(2|3)Imm8_2I intrinsic function
This function reads the const from the wrong arg, this CL fixes it. Change-Id: Icd38977a35f0df9064efb290fa6390453d6b9e5b Reviewed-on: https://go-review.googlesource.com/c/go/+/688595 Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
03a3887f31
commit
f0e9dc0975
1 changed files with 2 additions and 2 deletions
|
|
@ -1722,7 +1722,7 @@ func opLen3Imm8(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.CallE
|
||||||
|
|
||||||
func opLen2Imm8_2I(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
func opLen2Imm8_2I(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
||||||
return func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
return func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
||||||
if args[1].Op == ssa.OpConst8 {
|
if args[2].Op == ssa.OpConst8 {
|
||||||
return s.newValue2I(op, t, args[2].AuxInt<<int64(offset), args[0], args[1])
|
return s.newValue2I(op, t, args[2].AuxInt<<int64(offset), args[0], args[1])
|
||||||
}
|
}
|
||||||
plainPanicSimdImm(s)
|
plainPanicSimdImm(s)
|
||||||
|
|
@ -1736,7 +1736,7 @@ func opLen2Imm8_2I(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.Ca
|
||||||
|
|
||||||
func opLen3Imm8_2I(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
func opLen3Imm8_2I(op ssa.Op, t *types.Type, offset int) func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
||||||
return func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
return func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
||||||
if args[1].Op == ssa.OpConst8 {
|
if args[2].Op == ssa.OpConst8 {
|
||||||
return s.newValue3I(op, t, args[2].AuxInt<<int64(offset), args[0], args[1], args[3])
|
return s.newValue3I(op, t, args[2].AuxInt<<int64(offset), args[0], args[1], args[3])
|
||||||
}
|
}
|
||||||
plainPanicSimdImm(s)
|
plainPanicSimdImm(s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue