arm: Add cfi expression support for ra_auth_code
authorVictor Do Nascimento <Victor.DoNascimento@arm.com>
Tue, 2 Aug 2022 10:34:42 +0000 (11:34 +0100)
committerTamar Christina <tamar.christina@arm.com>
Tue, 2 Aug 2022 10:34:42 +0000 (11:34 +0100)
commite90f28a7a78666ae593fec5cf57c0b5eb4636c22
tree556023e124ab695b6d292e997053d6b44931958d
parent3a368c4c248f6e9f4bda3a5369befa17a4560293
arm: Add cfi expression support for ra_auth_code

This patch extends assembler support for the use of register names to
allow for pseudo-registers, e.g. ra_auth_code register.
This is done particularly with CFI directives in mind, allowing for
expressions of the type:

    .cfi_register ra_auth_code, 12

gas/Changelog:

* config/tc-arm.c (tc_arm_regname_to_dw2regnum): Add
REG_TYPE_PSEUDO handling.
* testsuite/gas/arm/cfi-pacbti-m-readelf.d: New.
* testsuite/gas/arm/cfi-pacbti-m.s: New.
gas/config/tc-arm.c
gas/testsuite/gas/arm/cfi-pacbti-m-readelf.d [new file with mode: 0644]
gas/testsuite/gas/arm/cfi-pacbti-m.s [new file with mode: 0644]