RISC-V: PR30449, Add lga assembler macro support.
authorJim Wilson <jimw@sifive.com>
Thu, 1 Jun 2023 04:10:16 +0000 (12:10 +0800)
committerNelson Chu <nelson@rivosinc.com>
Thu, 1 Jun 2023 04:25:08 +0000 (12:25 +0800)
commitec2260af61501798d00e41c3180c63d25b11439c
tree7ffe0055a6556d67d4b974e41c37205626268f39
parent20ef84ed2abb990da08d90e1c978f96d29f40606
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.
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/la-variants.d [new file with mode: 0644]
gas/testsuite/gas/riscv/la-variants.s [new file with mode: 0644]
include/opcode/riscv.h
opcodes/riscv-opc.c