Skip to content
Snippets Groups Projects
Commit 7d0cb2a2 authored by Keith Randall's avatar Keith Randall Committed by Keith Randall
Browse files

cmd/compile: constant fold 128-bit multiplies

The full 64x64->128 multiply comes up when using bits.Mul64.
The 64x64->64+overflow multiply comes up in unsafe.Slice when using
a constant length.

Change-Id: I298515162ca07d804b2d699d03bc957ca30a4ebc
Reviewed-on: https://go-review.googlesource.com/c/go/+/667175


Reviewed-by: default avatarJunyang Shao <shaojunyang@google.com>
Reviewed-by: default avatarKeith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
parent 7a177114
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment