public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v1] LoongArch: Fix ld test failures caused by using instruction aliases
@ 2024-04-23  8:29 Lulu Cai
  0 siblings, 0 replies; only message in thread
From: Lulu Cai @ 2024-04-23  8:29 UTC (permalink / raw)
  To: binutils
  Cc: xuchenghua, chenglulu, mengqinggang, xry111, i.swmail, maskray,
	luweining, hejinyang, Lulu Cai

Different versions of objdump may take different forms of output
for instructions. Use -M no-aliases to avoid the failure of ld
test cases caused by objdump using aliases.
---
 ld/testsuite/ld-loongarch-elf/relax.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-loongarch-elf/relax.exp b/ld/testsuite/ld-loongarch-elf/relax.exp
index 890f139d428..6137bd1cf67 100644
--- a/ld/testsuite/ld-loongarch-elf/relax.exp
+++ b/ld/testsuite/ld-loongarch-elf/relax.exp
@@ -37,7 +37,7 @@ proc run_partial_linking_align_test {} {
       || ![ld_link $ld tmpdir/$testname "tmpdir/$testname.os -e0 -Ttext 0x1000"] } {
     fail $testname
   } else {
-    set objdump_output [run_host_cmd "objdump" "-d tmpdir/$testname"]
+    set objdump_output [run_host_cmd "objdump" "-d -M no-aliases tmpdir/$testname"]
     if { [ regexp ".*1010:\\s*4c000020\\s*jirl.*" $objdump_output ] } {
       pass $testname
     } else {
-- 
2.36.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-23  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23  8:29 [PATCH v1] LoongArch: Fix ld test failures caused by using instruction aliases Lulu Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).