]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Support LA32R aliases rdcnt{vl,vh,id}.w
authorWANG Xuerui <git@xen0n.name>
Sun, 23 Mar 2025 09:30:38 +0000 (17:30 +0800)
committercailulu <cailulu@loongson.cn>
Sun, 13 Apr 2025 02:45:00 +0000 (10:45 +0800)
commiteff93f19cb973c58fbc9899e4e111d583e4a1dbe
tree0aa40b20972b72d0c0bab8e027e6df3a96e4e349
parente35f05214f9995a918ec4731b36322e20db42507
LoongArch: Support LA32R aliases rdcnt{vl,vh,id}.w

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.

Signed-off-by: WANG Xuerui <git@xen0n.name>
gas/testsuite/gas/loongarch/fix_op.d
gas/testsuite/gas/loongarch/fix_op.s
gas/testsuite/gas/loongarch/insn_alias_32.d
gas/testsuite/gas/loongarch/insn_alias_32.s
opcodes/loongarch-opc.c