[PATCH][Aarch64] Missing register aliases

Michael Collison Michael.Collison@arm.com
Fri Jun 2 20:19:00 GMT 2017


This patch adds missing register alias IP0, IP1, FP and LR to gas.

According to the Procedure Call Standard for aarch64:

"In all variants of the procedure call standard, registers r16, r17, r29 and r30 have special roles. In these roles they are labeled IP0, IP1, FP and LR when being used for holding addresses (that is, the special name implies accessing the register as a 64-bit entity).

Okay for trunk?

2017-06-02  Michael Collison  <michael.collison@arm.com>

	* gas/config/tc-aarch64.c (reg_entry_reg_names): Add IP0,
	IP1, FP, and LR as register aliases of register 16, 17, 29
	and 30 respectively.
	* gas/testsuite/gas/aarch64/diagnostic.l: Remove diagnostic
	prohibiting register 'lr' which is now an alias.
	* gas/testsuite/gas/aarch64/diagnostic.s: Remove instruction
	utilizing register 'lr' which is now an alias.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr3089.patch.patch
Type: application/octet-stream
Size: 1798 bytes
Desc: pr3089.patch.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20170602/1301c887/attachment.obj>


More information about the Binutils mailing list