[binutils-gdb] Adjust expected loongarch32 test results
Alan Modra
amodra@sourceware.org
Wed Dec 18 22:36:49 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=56ed62a9828b6a6932d00c945e8f7c3dd671a455
commit 56ed62a9828b6a6932d00c945e8f7c3dd671a455
Author: Alan Modra <amodra@gmail.com>
Date: Thu Dec 19 08:33:44 2024 +1030
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:
---
gas/testsuite/gas/loongarch/dwarf-regnum.d | 4 ++--
gas/testsuite/gas/loongarch/localpic.d | 30 +++++++++++++++---------------
2 files changed, 17 insertions(+), 17 deletions(-)
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_LARCH_GOT_PC_HI20 [0-9a-f]+ sym \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_PC_LO12 [0-9a-f]+ sym \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_PC_HI20 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_PC_LO12 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT64_PC_LO20 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT64_PC_HI12 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_HI20 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_LO12 [0-9a-f]+ foo \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_HI20 [0-9a-f]+ sym \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT_LO12 [0-9a-f]+ sym \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT64_LO20 [0-9a-f]+ sym \+ 0
-[0-9a-f]+ [0-9a-f]+ R_LARCH_GOT64_HI12 [0-9a-f]+ sym \+ 0
+.*
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_PC_HI20 +[0-9a-f]+ +sym \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_PC_LO12 +[0-9a-f]+ +sym \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_PC_HI20 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_PC_LO12 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT64_PC_LO20 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT64_PC_HI12 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_HI20 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_LO12 +[0-9a-f]+ +foo \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_HI20 +[0-9a-f]+ +sym \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT_LO12 +[0-9a-f]+ +sym \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT64_LO20 +[0-9a-f]+ +sym \+ 0
+[0-9a-f]+ +[0-9a-f]+ R_LARCH_GOT64_HI12 +[0-9a-f]+ +sym \+ 0
#...
- +[0-9a-f]+: +[0-9a-f]+ 0 NOTYPE LOCAL DEFAULT +[0-9a-f]+ foo
- +[0-9a-f]+: 0+abba 0 NOTYPE LOCAL DEFAULT ABS sym
+ +[0-9a-f]+: +[0-9a-f]+ +0 NOTYPE +LOCAL +DEFAULT +[0-9a-f]+ foo
+ +[0-9a-f]+: +0+abba +0 NOTYPE +LOCAL +DEFAULT +ABS sym
#pass
More information about the Binutils-cvs
mailing list