From: Alan Modra Date: Wed, 18 Dec 2024 22:03:44 +0000 (+1030) Subject: Adjust expected loongarch32 test results X-Git-Tag: gdb-16-branchpoint~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56ed62a9828b6a6932d00c945e8f7c3dd671a455;p=thirdparty%2Fbinutils-gdb.git Adjust expected loongarch32 test results readelf and objdump differ in output for 32-bit vs 64-bit. * testsuite/gas/loongarch/dwarf-regnum.d: Adjust to suit both 32-bit and 64-bit output. * testsuite/gas/loongarch/localpic.d: Likewise. --- diff --git a/gas/testsuite/gas/loongarch/dwarf-regnum.d b/gas/testsuite/gas/loongarch/dwarf-regnum.d index f7af72866ea..41956b13d27 100644 --- a/gas/testsuite/gas/loongarch/dwarf-regnum.d +++ b/gas/testsuite/gas/loongarch/dwarf-regnum.d @@ -13,8 +13,8 @@ Contents of the .*: Return address column: .* Augmentation data: .* #... -[a-zA-Z0-9]+ [a-zA-Z0-9]+ [a-zA-Z0-9]+ FDE cie=00000000 pc=[a-zA-Z0-9]+\.\.[a-zA-Z0-9]+ - DW_CFA_advance_loc: 4 to 0000000000000020 +[a-zA-Z0-9]+ [a-zA-Z0-9]+ [a-zA-Z0-9]+ FDE cie=0+ pc=[a-zA-Z0-9]+\.\.[a-zA-Z0-9]+ + DW_CFA_advance_loc: 4 to 0+20 DW_CFA_offset_extended_sf: r0 \(\$zero\) at cfa\+8 DW_CFA_offset_extended_sf: r1 \(\$ra\) at cfa\+16 DW_CFA_offset_extended_sf: r2 \(\$tp\) at cfa\+24 diff --git a/gas/testsuite/gas/loongarch/localpic.d b/gas/testsuite/gas/loongarch/localpic.d index bea1957818b..46d06ca2aeb 100644 --- a/gas/testsuite/gas/loongarch/localpic.d +++ b/gas/testsuite/gas/loongarch/localpic.d @@ -3,20 +3,20 @@ #name: loongarch64 local PIC Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 12 entries: - Offset Info Type Symbol's Value Symbol's Name \+ Addend -[0-9a-f]+ [0-9a-f]+ R_LAR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