[PATCH v1 3/4] LoongArch: Add rdcntid, rdcntvl.w, rdcntvh.w support for gas

WANG Xuerui i.swmail@xen0n.name
Wed Jun 11 07:57:21 GMT 2025


On 6/10/25 16:42, mengqinggang wrote:
> ---
>   opcodes/loongarch-opc.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
> index 23aa167e0d4..741fb9a9b6e 100644
> --- a/opcodes/loongarch-opc.c
> +++ b/opcodes/loongarch-opc.c
> @@ -503,6 +503,9 @@ static struct loongarch_opcode loongarch_fix_opcodes[] =
>     { 0x0,	0x0,		"rdcntvh.w",	"r",				"rdtimeh.w %1,$r0",	0,	0,	0 },
>     { 0x00006400, 0xfffffc00,	"rdtimeh.w",	"r0:5,r5:5",			0,			0,	0,	0 },
>     { 0x00006800, 0xfffffc00,	"rdtime.d",	"r0:5,r5:5",			0,			0,	0,	0 },
> +  {0x00006000, 0xfffffc00,	"rdcntid",	"r5:5",				0,			0,	0,	0 },
> +  {0x00006000, 0xfffffc00,	"rdcntvl.w",	"r0:5",				0, 			0,	0,	0 },
> +  {0x00006400, 0xfffffc00,	"rdcntvh.w",	"r0:5",				0, 			0,	0,	0 },
>     { 0x00006c00, 0xfffffc00,	"cpucfg",	"r0:5,r5:5",			0,			0,	0,	0 },
>     { 0x00010000, 0xffff801f,	"asrtle.d",	"r5:5,r10:5",			0,			0,	0,	0 },
>     { 0x00018000, 0xffff801f,	"asrtgt.d",	"r5:5,r10:5",			0,			0,	0,	0 },

Aren't these already included above in the form of macros?



More information about the Binutils mailing list