aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2023-06-01 12:10:16 +0800
committerNelson Chu <nelson@rivosinc.com>2023-06-01 12:25:08 +0800
commitec2260af61501798d00e41c3180c63d25b11439c (patch)
tree7ffe0055a6556d67d4b974e41c37205626268f39 /include
parent20ef84ed2abb990da08d90e1c978f96d29f40606 (diff)
downloadgdb-ec2260af61501798d00e41c3180c63d25b11439c.zip
gdb-ec2260af61501798d00e41c3180c63d25b11439c.tar.gz
gdb-ec2260af61501798d00e41c3180c63d25b11439c.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/riscv.h1
1 files changed, 1 insertions, 0 deletions
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,