mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile/internal/ssa: implement OHMUL
Adds support for high multiply which is used by the frontend when rewriting const division. The frontend currently only does this for 8, 16, and 32 bit integer arithmetic. Change-Id: I9b6c6018f3be827a50ee6c185454ebc79b3094c8 Reviewed-on: https://go-review.googlesource.com/13696 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
a45f2d8f28
commit
67cbd5b51d
10 changed files with 4266 additions and 4 deletions
|
|
@ -51,3 +51,6 @@ func TestFP(t *testing.T) { runTest(t, "fp_ssa.go") }
|
|||
|
||||
// TestArithmeticBoundary tests boundary results for arithmetic operations.
|
||||
func TestArithmeticBoundary(t *testing.T) { runTest(t, "arithBoundary_ssa.go") }
|
||||
|
||||
// TestArithmeticConst tests results for arithmetic operations against constants.
|
||||
func TestArithmeticConst(t *testing.T) { runTest(t, "arithConst_ssa.go") }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue