From ec2260af61501798d00e41c3180c63d25b11439c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 1 Jun 2023 12:10:16 +0800 Subject: RISC-V: PR30449, Add lga assembler macro support. Originally discussion, https://github.com/riscv/riscv-isa-manual/pull/539 Added new load address pseudo instruction which is always expanded to GOT access, no matter the .option rvc is set or not. gas/ PR 30449 * config/tc-riscv.c (macro): Add M_LGA support. * testsuite/gas/riscv/la-variants.d: New. * testsuite/gas/riscv/la-variants.s: New. include/ PR 30449 * opcode/riscv.h (M_LGA): New. opcodes/ PR 30449 * riscv-opc.c (riscv_opcodes): Add lga support. --- include/opcode/riscv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/opcode/riscv.h b/include/opcode/riscv.h index e86a1bd..877ec66 100644 --- a/include/opcode/riscv.h +++ b/include/opcode/riscv.h @@ -502,6 +502,7 @@ enum { M_LA, M_LLA, + M_LGA, M_LA_TLS_GD, M_LA_TLS_IE, M_LB, -- cgit v1.1