[PATCH 1/2] LoongArch: Support LA32R aliases rdcnt{vl,vh,id}.w
Lulu Cai
cailulu@loongson.cn
Thu Mar 27 09:44:34 GMT 2025
On 3/23/25 5:30 PM, WANG Xuerui wrote:
> From: WANG Xuerui <git@xen0n.name>
>
> These LA32R instructions are in fact special cases of the LA32S/LA64
> rdtime{l,h}.w (with only one output operand instead of two, the other
> one being forced to $zero), but are named differently in the LA32R
> ISA manual nevertheless.
>
> As the LA32R names are more memorable to a degree (especially for those
> having difficulties remembering which operand corresponds to the node
> ID), support them by making them aliases of the corresponding LA32S/LA64
> instruction respectively, and make them render as such in disassembly.
The patch supporting the LA32R alias rdcnt{vl,vh,id}.w looks good. Do
you have time to send v2 for it?
> Signed-off-by: WANG Xuerui <git@xen0n.name>
> ---
> gas/testsuite/gas/loongarch/fix_op.d | 3 +++
> gas/testsuite/gas/loongarch/fix_op.s | 5 +++++
> gas/testsuite/gas/loongarch/insn_alias_32.d | 3 +++
> gas/testsuite/gas/loongarch/insn_alias_32.s | 5 +++++
> opcodes/loongarch-opc.c | 6 ++++++
> 5 files changed, 22 insertions(+)
>
More information about the Binutils
mailing list