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.
This commit is contained in:
Jim Wilson
2023-06-01 12:10:16 +08:00
committed by Nelson Chu
parent 20ef84ed2a
commit ec2260af61
5 changed files with 61 additions and 2 deletions

View File

@ -502,6 +502,7 @@ enum
{
M_LA,
M_LLA,
M_LGA,
M_LA_TLS_GD,
M_LA_TLS_IE,
M_LB,