aboutsummaryrefslogtreecommitdiff
path: root/opcodes/loongarch-opc.c
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-01-25 14:44:12 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-01-26 16:49:43 +0800
commit969f5c0e12c18595cbd16f2df73c4630d0635dfe (patch)
tree90c37fa8b74291d730b8ec2460b0a0dd26317bcf /opcodes/loongarch-opc.c
parenta0aa6f4abd649768d6d028da1f953c96bac0c94f (diff)
downloadgdb-969f5c0e12c18595cbd16f2df73c4630d0635dfe.zip
gdb-969f5c0e12c18595cbd16f2df73c4630d0635dfe.tar.gz
gdb-969f5c0e12c18595cbd16f2df73c4630d0635dfe.tar.bz2
LoongArch: gas: Add support for s9 register
In LoongArch ABI, r22 register can be used as frame pointer or static register(s9). Link: https://github.com/loongson/la-abi-specs/blob/release/lapcs.adoc#general-purpose-registers
Diffstat (limited to 'opcodes/loongarch-opc.c')
-rw-r--r--opcodes/loongarch-opc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
index 490c689..6bd436f 100644
--- a/opcodes/loongarch-opc.c
+++ b/opcodes/loongarch-opc.c
@@ -49,6 +49,15 @@ const char *const loongarch_r_alias[32] =
"$s1", "$s2", "$s3", "$s4", "$s5", "$s6", "$s7", "$s8",
};
+/* Add support for $s9. */
+const char *const loongarch_r_alias_1[32] =
+{
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "$s9", "",
+ "", "", "", "", "", "", "", "",
+};
+
const char *const loongarch_r_alias_deprecated[32] =
{
"", "", "", "", "$v0", "$v1", "", "", "", "", "", "", "", "", "", "",