]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add restrictions on the shift amount range of arm64 various instructions
authorfanzha02 <fannie.zhang@arm.com>
Mon, 19 Apr 2021 02:40:20 +0000 (10:40 +0800)
committerfannie zhang <Fannie.Zhang@arm.com>
Thu, 22 Apr 2021 01:29:53 +0000 (01:29 +0000)
commit0636d88f6d79827e0acdc8e53b8f249652061d2d
treeeb6907156f7bc0664c3dad7c248777d13b66f64c
parent02a8e836616cb8eb6d776514c6239095b1328fd2
cmd/compile: add restrictions on the shift amount range of arm64 various instructions

For arm64 constant shift instructions, e.g., LSL(immediate), they use
only the low 6 bits. To conform the semantics of the hardware instructions,
this CL comments in ARM64OPS.go about restricted AuxInt ranges for the
various instructions involved.

Change-Id: I2b6560d6580e22ba7cbfa744a02b046dd5714b8a
Reviewed-on: https://go-review.googlesource.com/c/go/+/303569
Trust: fannie zhang <Fannie.Zhang@arm.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/ARM64Ops.go