[release-branch.go1.5] cmd/compile: fix register allocation for == operator
The issue 12226 has been caused by the allocation of the same register for the equality check of two byte values. The code in cgen.go freed the register for the second operand before the allocation of the register for the first operand. Fixes #12226 Change-Id: Ie4dc33a488bd48a17f8ae9b497fd63c1ae390555 Reviewed-on: https://go-review.googlesource.com/13771Reviewed-by:Russ Cox <rsc@golang.org> Reviewed-on: https://go-review.googlesource.com/14227Reviewed-by:
Ian Lance Taylor <iant@golang.org>
Showing
test/fixedbugs/issue12226.go
0 → 100644
Please register or sign in to comment