Adjust expected loongarch32 test results

Message ID Z2NOSDdz9pLSO8w9@squeak.grove.modra.org
State New
Headers
Series Adjust expected loongarch32 test results |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 fail Patch failed to apply

Commit Message

Alan Modra Dec. 18, 2024, 10:35 p.m. UTC
  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.
  

Patch

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