27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 70a4a09cc223d761b261859fbf21af578894d776 Mon Sep 17 00:00:00 2001
|
|
From: XingLi <lixing@loongson.cn>
|
|
Date: Sat, 22 Jul 2023 15:49:36 +0800
|
|
Subject: [PATCH 2/3] Fixup gas check illegal for 'b label'
|
|
|
|
---
|
|
opcodes/loongarch-opc.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
|
|
index be0de61c..e3833007 100644
|
|
--- a/opcodes/loongarch-opc.c
|
|
+++ b/opcodes/loongarch-opc.c
|
|
@@ -823,8 +823,8 @@ static struct loongarch_opcode loongarch_jmp_opcodes[] =
|
|
{ 0x0, 0x0, "bnez", "r,la", "bnez %1,%%b21(%2)", 0, 0, 0 },
|
|
{ 0x44000000, 0xfc000000, "bnez", "r5:5,sb0:5|10:16<<2", 0, 0, 0, 0 },
|
|
{ 0x0, 0x0, "jr", "r", "jirl $r0,%1,0", 0, 0, 0 },
|
|
- { 0x50000000, 0xfc000000, "b", "sb0:10|10:16<<2", 0, 0, 0, 0 },
|
|
{ 0x0, 0x0, "b", "la", "b %%b26(%1)", 0, 0, 0 },
|
|
+ { 0x50000000, 0xfc000000, "b", "sb0:10|10:16<<2", 0, 0, 0, 0 },
|
|
{ 0x4c000000, 0xfc000000, "jirl", "r0:5,r5:5,s10:16<<2", 0, 0, 0, 0 },
|
|
{ 0x0, 0x0, "bl", "la", "bl %%b26(%1)", 0, 0, 0 },
|
|
{ 0x54000000, 0xfc000000, "bl", "sb0:10|10:16<<2", 0, 0, 0, 0 },
|
|
--
|
|
2.27.0
|
|
|