]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/arm64: disable AL and NV for some condition operation instructions
authoreric fang <eric.fang@arm.com>
Fri, 7 May 2021 05:48:18 +0000 (05:48 +0000)
committereric fang <eric.fang@arm.com>
Fri, 14 May 2021 07:53:46 +0000 (07:53 +0000)
commitc925e1546ee72e40ca5351f3773379e99a6b8cdf
tree92b7b98a6a3817770b59bc9f0fa577152ed9ead5
parent12d383c7c7406dda2cb969a89ce3801c220614c5
cmd/internal/obj/arm64: disable AL and NV for some condition operation instructions

According to the armv8-a reference manual, conditions AL and NV are not allowed
for instructions CINC, CINV, CNEG, CSET and CSETM. This CL adds this check and
the corresponding test cases.

Change-Id: Icb496b7b13a353f41491f2de4d939a5cd88abb04
Reviewed-on: https://go-review.googlesource.com/c/go/+/317912
Reviewed-by: eric fang <eric.fang@arm.com>
Reviewed-by: Cherry Mui <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