]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: initialize t.UInt in SetTypPtrs()
authorLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 9 May 2018 21:35:10 +0000 (17:35 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 10 May 2018 14:50:30 +0000 (14:50 +0000)
commite4172e5f5e9b194ec300ddc2bd6678a8e1d34454
tree901d09093e2d5c24c9d63a81f73ae0110d471772
parentf95ef94ad5f58aef9a17bae407bf7b154caabe11
cmd/compile/internal/ssa: initialize t.UInt in SetTypPtrs()

Initialization of t.UInt is missing from SetTypPtrs in config.go,
preventing rules that use it from matching when they should.
This adds the initialization to allow those rules to work.

Updated test/codegen/rotate.go to test for this case, which
appears in math/bits RotateLeft32 and RotateLeft64. There had been
a testcase for this in go 1.10 but that went away when asm_test.go
was removed.

Change-Id: I82fc825ad8364df6fc36a69a1e448214d2e24ed5
Reviewed-on: https://go-review.googlesource.com/112518
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/config.go
test/codegen/rotate.go