[gas][arm] Set context table for '.arch_extension'
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 10 Dec 2019 16:10:17 +0000 (16:10 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 10 Dec 2019 16:10:17 +0000 (16:10 +0000)
commit0e7aaa728dc23f81a7809f3c5c9b90e85b978a8a
tree6f4bc053ee1ca1d9294f65842c6ca4be1d2f0a56
parent6c71eb7d70c3678f595cd8e66d78c9da5bd3ef4e
[gas][arm] Set context table for '.arch_extension'

This patch fixes .arch_extension behaviour.

Currently, context table for '.arch_extension' is only set while
"-march" processing, but it is not set while .arch processing,
so following code is rejected

  .syntax unified
  .thumb
  .arch armv8.1-m.main
  .arch_extension mve.fp

  unless -march=armv8.1-m.main is given.

Committing on behalf of Vladimir Murzin

gas/ChangeLog:
2019-12-10  Vladimir Murzin  <vladimir.murzin@arm.com>

* config/tc-arm.c (s_arm_arch): Set selected_ctx_ext_table.
* testsuite/gas/arm/mve-arch-ext.s: New.
* testsuite/gas/arm/mve-arch-ext.d: New.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/mve-arch-ext.d [new file with mode: 0644]
gas/testsuite/gas/arm/mve-arch-ext.s [new file with mode: 0644]
This page took 0.026205 seconds and 4 git commands to generate.