]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add generated tests for constant folding
authorKeith Randall <khr@golang.org>
Tue, 24 May 2016 23:53:48 +0000 (16:53 -0700)
committerKeith Randall <khr@golang.org>
Wed, 25 May 2016 14:11:10 +0000 (14:11 +0000)
commit786e51d7baf6535290ecb0f34c9e73d7dcc21b02
tree0767be973e8f26cafeaec16be2221827a99cda92
parent9f38796270a017de8d9e1f102b28576826e6a188
cmd/compile: add generated tests for constant folding

Covers a bunch of constant-folding rules in generic.rules that aren't
being covered currently.

Increases coverage in generic.rules from 65% to 72%.

Change-Id: I7bf58809faf22e97070183b42e6dd7d3f35bf5f9
Reviewed-on: https://go-review.googlesource.com/23407
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Todd Neal <todd@tneal.org>
src/cmd/compile/internal/gc/constFold_test.go [new file with mode: 0644]
src/cmd/compile/internal/gc/testdata/gen/constFoldGen.go [new file with mode: 0644]