[PATCH] MIPS: Fix cond-trap-imm-zero test for target mips*-elf

YunQiang Su syq@debian.org
Sat Jul 13 09:27:22 GMT 2024


The Linux targets will append some NOPs after our traps, while elf
targets won't.

Let's add 2 more NOP at the end, so that they can fit the .d file.
---
 gas/testsuite/gas/mips/cond-trap-imm-zero.s | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gas/testsuite/gas/mips/cond-trap-imm-zero.s b/gas/testsuite/gas/mips/cond-trap-imm-zero.s
index 84cc7f1f842..a298c1ceb09 100644
--- a/gas/testsuite/gas/mips/cond-trap-imm-zero.s
+++ b/gas/testsuite/gas/mips/cond-trap-imm-zero.s
@@ -1,9 +1,11 @@
         .set    noreorder
         .set    nomacro
 f:
-        teq	$6,0
-        tge	$6,0
-        tgeu	$6,0
+	teq	$6,0
+	tge	$6,0
+	tgeu	$6,0
 	tlt	$6,0
 	tltu	$6,0
-        tne	$6,0
+	tne	$6,0
+	nop
+	nop
-- 
2.39.3 (Apple Git-146)



More information about the Binutils mailing list