]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: disable the pre and post index formats for pseudo registers
authoreric fang <eric.fang@arm.com>
Mon, 16 Aug 2021 07:25:29 +0000 (07:25 +0000)
committereric fang <eric.fang@arm.com>
Fri, 20 Aug 2021 03:25:17 +0000 (03:25 +0000)
commitc92c2c9d625ff3957d1c9313183fd0fe8f26984e
treec1a44756a5361c693a2b3b638cee1298b608bfe8
parent65074a40867d9c42a6b89f96b9eeef5a39234846
cmd/internal/obj/arm64: disable the pre and post index formats for pseudo registers

When using the FP or SP pseudo-register to load or store, pre-index and post-index formats
are not supported because the RSP and pseudo registers are not allowed to be modified in this
way. This CL deletes the related entries in optab and adds a few test cases.

Change-Id: Ie30d27d0e7b959242f0e6298b950489669d07989
Reviewed-on: https://go-review.googlesource.com/c/go/+/342770
Reviewed-by: eric fang <eric.fang@arm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: eric fang <eric.fang@arm.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go