]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix 32-bit unsigned division on 64-bit machines
authorKeith Randall <khr@golang.org>
Fri, 17 Feb 2017 19:36:08 +0000 (11:36 -0800)
committerKeith Randall <khr@golang.org>
Fri, 17 Feb 2017 22:21:04 +0000 (22:21 +0000)
commita9292b833bdc8d95f738db20a1fc7bcffc0b33d2
tree9ee220cf72566cab9c6922b13c40716c44d7d3d0
parent4498b6839042fd0eb0e2854bc93fbf26c3f78046
cmd/compile: fix 32-bit unsigned division on 64-bit machines

The type of an intermediate multiply was wrong.  When that
intermediate multiply was spilled, the top 32 bits were lost.

Fixes #19153

Change-Id: Ib29350a4351efa405935b7f7ee3c112668e64108
Reviewed-on: https://go-review.googlesource.com/37212
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go