]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: check out-of-range shifts on ARM and ARM64
authorCherry Mui <cherryyz@google.com>
Wed, 22 Sep 2021 17:13:08 +0000 (13:13 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 22 Sep 2021 18:32:21 +0000 (18:32 +0000)
commitccfc41eee01772576f83784ae44578e955e4ae6f
treeac0b11b25524ade3bc77a0620e8a226e6a38746c
parent635e49388bf746a2b8c7ab1e9026aede0eb88b31
cmd/compile: check out-of-range shifts on ARM and ARM64

When encoding ARM or ARM64 shifted register operand, check that
the shift is in range.

Change-Id: If0014933bfd0a1b8eaaa01e0220a6eeb17ab9f40
Reviewed-on: https://go-review.googlesource.com/c/go/+/351530
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/arm64/ssa.go