]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: on ARM, make sure *const's AuxInt fit into int32
authorCherry Zhang <cherryyz@google.com>
Tue, 31 Oct 2017 15:48:13 +0000 (11:48 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 31 Oct 2017 20:14:55 +0000 (20:14 +0000)
commitbc723cf3400b7dd4e0b9d8e947da9b6fbdfb4831
treead63281c30564a8367313e963a56b76ae4669f1b
parent7cb3e4fb1d6b2704ecdc3d6983587975ce077a34
cmd/compile: on ARM, make sure *const's AuxInt fit into int32

Previously some of the AuxInt are uint32, which may not fit into
int32. This CL convert them to int32. This does not change the
generated code, but make ssacheck happy.

Pass "toolstash -cmp" for std cmd on ARM.

Fixes #22499.

Change-Id: Ib072d3c14962388bfeb0766c861995d00b4fa7c4
Reviewed-on: https://go-review.googlesource.com/74770
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/testdata/arithConst.go
src/cmd/compile/internal/gc/testdata/gen/arithConstGen.go
src/cmd/compile/internal/ssa/gen/ARM.rules
src/cmd/compile/internal/ssa/rewriteARM.go