]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-arm.c
Add support for context sensitive '.arch_extension' to the ARM assembler.
authorMihail Ionescu <mihail.ionescu@arm.com>
Thu, 31 Oct 2019 11:22:58 +0000 (11:22 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 31 Oct 2019 11:22:58 +0000 (11:22 +0000)
commite20f9590e78473b3b944d606c28a519094eedea0
tree8fea0061965fd8f3fd6f4f547e9a5f66a32e8606
parentc7e49b689b01e54020a945214e75d4d3f8b6a226
Add support for context sensitive '.arch_extension' to the ARM assembler.

If the extension is not found in the context sensitive table, the legacy
tables are still checked as a fallback.  This is particularly useful for
Armv8.1-M as it enables  the use of '.arch_extension' with the 'mve' and
'mve.fp' extensions which are not part of the legacy table.

* config/tc-arm.c (selected_ctx_ext_table) New static variable.
(arm_parse_arch): Set context sensitive extension table based on the
chosen base architecture.
(s_arm_arch_extension): Change to lookup extensions in the new context
sensitive tables.
* gas/testsuite/gas/arm/mve-ext.s: New.
* gas/testsuite/gas/arm/mve-ext.d: New.
* gas/testsuite/gas/arm/mvefp-ext.s: New.
* gas/testsuite/gas/arm/mvefp-ext.d: New.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/mve-ext.d [new file with mode: 0644]
gas/testsuite/gas/arm/mve-ext.s [new file with mode: 0644]
gas/testsuite/gas/arm/mvefp-ext.d [new file with mode: 0644]
gas/testsuite/gas/arm/mvefp-ext.s [new file with mode: 0644]