]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't fold >32bit constants into a MULQ
authorKeith Randall <khr@golang.org>
Tue, 16 Aug 2016 16:19:05 +0000 (09:19 -0700)
committerKeith Randall <khr@golang.org>
Tue, 16 Aug 2016 16:46:48 +0000 (16:46 +0000)
commitd251030fa6feac46e5686a78b9681625447a5871
tree93cb08803ae2a3125cc6ff07df8d3d2c0cf9bb7a
parent562d06fc23261b21d12fbcbd407aadee9cb428cb
cmd/compile: don't fold >32bit constants into a MULQ

Don't fold constant factors into a multiply
beyond the capacity of a MULQ instruction (32 bits).

Fixes #16733

Change-Id: Idc213c6cb06f7c94008a8cf9e60a9e77d085fd89
Reviewed-on: https://go-review.googlesource.com/27160
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
test/fixedbugs/issue16733.go [new file with mode: 0644]