]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix loong64 constant folding in division rules
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 21 May 2022 12:00:18 +0000 (19:00 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 23 May 2022 23:54:07 +0000 (23:54 +0000)
commita2bca290e7bc8ab0cdd6c26038f15ac1bb9f8628
tree44ee960d339c099678470dd98eedfd02288eed5c
parent2138124143e27f72e1ad8fdcee0405d8e8647c76
cmd/compile: fix loong64 constant folding in division rules

The divisor must be non-zero for the rule to be triggered.

Fixes #53018

Change-Id: Id56b8d986945bbb66e13131d11264ee438de5cb2
Reviewed-on: https://go-review.googlesource.com/c/go/+/407655
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: xiaodong liu <teaofmoli@gmail.com>
Reviewed-by: WANG Xuerui <git@xen0n.name>
src/cmd/compile/internal/ssa/gen/LOONG64.rules
src/cmd/compile/internal/ssa/rewriteLOONG64.go
test/fixedbugs/issue53018.go [new file with mode: 0644]