]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix the wrong ROR operator of some instructions
authoreric fang <eric.fang@arm.com>
Thu, 15 Apr 2021 03:27:55 +0000 (03:27 +0000)
committereric fang <eric.fang@arm.com>
Thu, 22 Apr 2021 01:40:02 +0000 (01:40 +0000)
commit5daefc5363080acd631ae97a84faf651a70d9888
tree19764b652befa9b2d74dc66fbfb7a7cde8d48ab6
parent0636d88f6d79827e0acdc8e53b8f249652061d2d
cmd/internal/obj/arm64: fix the wrong ROR operator of some instructions

Instructions such as ADD, SUB, CMP do not support ROR shift operations,
but we have not checked this at present. This CL adds this check.

Change-Id: Icac461f61ad6ddb60886a59ba34dddd29df1cc0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/310035
Reviewed-by: eric fang <eric.fang@arm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: eric fang <eric.fang@arm.com>
Run-TryBot: eric fang <eric.fang@arm.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go