[PATCH v2 0/1] ppc: support register names in macros

Dmitry Selyutin ghostmansd@gmail.com
Tue Jul 12 21:22:22 GMT 2022


This patch is a follow-up of discussion:

https://sourceware.org/pipermail/binutils/2022-July/121719.html

Form now on, PPC assembly becomes capable of compiling such code:

    .set VREG, %r0
    .set REG, VREG
    extsw REG, 2
    extsw %r1, 1

The custom register_name() code path, as well as checks for CRs, are
deprecated; from now on, we use md_operand() routine everywhere.

Whilst we're here, let's also reuse register lookup for CFI.

Changes since v1:
- Dropped incorrect and redundant logic regarding symbol lookup.
- Added restoring of input line pointer on failure.
- Refactored the patch so that it shows less changes.

Dmitry Selyutin (1):
  ppc: support register names in macros

 gas/config/tc-ppc.c | 232 +++++++++++++++++---------------------------
 gas/config/tc-ppc.h |   9 +-
 2 files changed, 96 insertions(+), 145 deletions(-)

-- 
2.37.0



More information about the Binutils mailing list