Skip to content

Commit 8cb6d3b

Browse files
jake-ciolekgopherbot
authored andcommitted
cmd/compile: mark PCMPEQB as commutative
compilecmp linux/amd64: internal/runtime/maps internal/runtime/maps.(*table).Delete changed internal/runtime/maps [cmd/compile] internal/runtime/maps.(*Map).Delete changed internal/runtime/maps.(*table).Delete changed Change-Id: Ic3c95411c23cab7427e63105170de41e5766f809 Reviewed-on: https://go-review.googlesource.com/c/go/+/647935 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]>
1 parent 472d285 commit 8cb6d3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ func init() {
11561156
//
11571157
// output[i] = input.
11581158
{name: "PSHUFBbroadcast", argLength: 1, reg: fp11, resultInArg0: true, asm: "PSHUFB"}, // PSHUFB with mask zero, (GOAMD64=v1)
1159-
{name: "VPBROADCASTB", argLength: 1, reg: gpfp, asm: "VPBROADCASTB"}, // Broadcast input byte from gp (GOAMD64=v3)
1159+
{name: "VPBROADCASTB", argLength: 1, reg: gpfp, asm: "VPBROADCASTB"}, // Broadcast input byte from gp (GOAMD64=v3)
11601160

11611161
// Byte negate/zero/preserve (GOAMD64=v2).
11621162
//
@@ -1180,7 +1180,7 @@ func init() {
11801180
// } else {
11811181
// output[i] = 0
11821182
// }
1183-
{name: "PCMPEQB", argLength: 2, reg: fp21, resultInArg0: true, asm: "PCMPEQB"},
1183+
{name: "PCMPEQB", argLength: 2, reg: fp21, resultInArg0: true, asm: "PCMPEQB", commutative: true},
11841184

11851185
// Byte sign mask. Output is a bitmap of sign bits from each input byte.
11861186
//

src/cmd/compile/internal/ssa/opGen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)