LoongArch: Fix ld test failures caused by using instruction aliases

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.
This commit is contained in:
Lulu Cai 2024-04-23 15:49:09 +08:00 committed by liuzhensong
parent cdf5362f56
commit d264d04ac4

View File

@ -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 {