MIPS/GAS: Add -march=loongson2f to loongson-2f-3 test

Message ID 20231124063512.2055623-1-yunqiang.su@cipunited.com
State Accepted
Headers
Series MIPS/GAS: Add -march=loongson2f to loongson-2f-3 test |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

YunQiang Su Nov. 24, 2023, 6:35 a.m. UTC
  On MIPSr6, the encoding of JR instruction has been chaned.
This patch can fix these failures for r6 default triples:
	ST Microelectronics Loongson-2F workarounds of Jump Instruction issue
---
 gas/testsuite/gas/mips/loongson-2f-3.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Nick Clifton Nov. 30, 2023, 4:49 p.m. UTC | #1
Hi YunQiang Su,

> On MIPSr6, the encoding of JR instruction has been chaned.
> This patch can fix these failures for r6 default triples:
> 	ST Microelectronics Loongson-2F workarounds of Jump Instruction issue

Patch approved and applied.

Cheers
   Nick
  

Patch

diff --git a/gas/testsuite/gas/mips/loongson-2f-3.d b/gas/testsuite/gas/mips/loongson-2f-3.d
index f3ac2c97742..c31d3abf53a 100644
--- a/gas/testsuite/gas/mips/loongson-2f-3.d
+++ b/gas/testsuite/gas/mips/loongson-2f-3.d
@@ -1,4 +1,4 @@ 
-#as: -mfix-loongson2f-jump
+#as: -march=loongson2f -mfix-loongson2f-jump
 #objdump: -M reg-names=numeric -dr
 #name: ST Microelectronics Loongson-2F workarounds of Jump Instruction issue