This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, AArch64] Fix disassembling of index register in ld/st register offset instructions


Hi,

This patch fixes a bug in printing the index register in the load/store register offset instruction when the index register is of register 31.

Instead of printing [xw]31, e.g.

ldr xzr, [sp,x31,sxtx #3]

it should print the [xw]zr, e.g.

ldr xzr, [sp,xzr,sxtx #3]

The patch passes regtest on aarch64-none-elf.

OK for the trunk and 2.24 branch?

Thanks,
Yufeng

opcodes/

	* aarch64-opc.c (print_register_offset_address): Call
	get_int_reg_name to prepare the register name.

gas/testsuite/

	* gas/aarch64/ldst-reg-reg-offset.s: Add tests.
	* gas/aarch64/ldst-reg-reg-offset.d: Update.

Attachment: patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]