LoongArch: gas: Adjust DWARF CIE alignment factors

Alan Modra amodra@gmail.com
Fri May 24 08:27:37 GMT 2024


Adjust the gas testsuite to suit commit de203ed568f6.

	* testsuite/gas/loongarch/relax-cfi-fde-DW_CFA_advance_loc.d:
	Expect data alignment of -8.  Tidy.

The following is the only substantive change.  The rest is just
tidying a few things, primarily no longer matching the disassembled
instruction since this is data.

-[ 	]+c:[ 	]+01017c01[ 	]+fadd.d[ 	]+\$fa1, \$fa0, \$fs7
+[ 	]+c:[ 	]+01017801[ 	].*

diff --git a/gas/testsuite/gas/loongarch/relax-cfi-fde-DW_CFA_advance_loc.d b/gas/testsuite/gas/loongarch/relax-cfi-fde-DW_CFA_advance_loc.d
index d685bd86b51..6da53b43749 100644
--- a/gas/testsuite/gas/loongarch/relax-cfi-fde-DW_CFA_advance_loc.d
+++ b/gas/testsuite/gas/loongarch/relax-cfi-fde-DW_CFA_advance_loc.d
@@ -5,50 +5,50 @@
 .*:[    ]+file format .*
 
 
-Disassembly of section .eh_frame:
+Disassembly of section \.eh_frame:
 
-[ 	]*0000000000000000 <.eh_frame>:
-[ 	]+0:[ 	]+00000014[ 	]+.word[ 	]+[ 	]+0x00000014
-[ 	]+4:[ 	]+00000000[ 	]+.word[ 	]+[ 	]+0x00000000
-[ 	]+8:[ 	]+00527a01[ 	]+.word[ 	]+[ 	]+0x00527a01
-[ 	]+c:[ 	]+01017c01[ 	]+fadd.d[ 	]+\$fa1, \$fa0, \$fs7
-[ 	]+10:[ 	]+0c030d1b[ 	]+.word[ 	]+[ 	]+0x0c030d1b
-[ 	]+14:[ 	]+00000016[ 	]+.word[ 	]+[ 	]+0x00000016
-[ 	]+18:[ 	]+0000003c[ 	]+.word[ 	]+[ 	]+0x0000003c
-[ 	]+1c:[ 	]+0000001c[ 	]+.word[ 	]+[ 	]+0x0000001c
+[ 	]*0000000000000000 <\.eh_frame>:
+[ 	]+0:[ 	]+00000014[ 	].*
+[ 	]+4:[ 	]+00000000[ 	].*
+[ 	]+8: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3d: R_LARCH_SUB6[ 	]+L0\^A
-[ 	]+40:[ 	]+d6400016[ 	]+.word[ 	]+[ 	]+0xd6400016
+[ 	]+40:[ 	]+d6400016[ 	].*
 [ 	]+42: R_LARCH_ADD6[ 	]+L0\^A
 [ 	]+42: R_LARCH_SUB6[ 	]+L0\^A
-[ 	]+44:[ 	]+4000160c[ 	]+beqz[ 	]+\$t4, 3145748[ 	]+# 300058 <L0\^A\+0x300008>
+[ 	]+44:[ 	]+4000160c[ 	].*
 [ 	]+47: R_LARCH_ADD6[ 	]+L0\^A
 [ 	]+47: R_LARCH_SUB6[ 	]+L0\^A
-[ 	]+48:[ 	]+00160cd6[ 	]+orn[ 	]+\$fp, \$a2, \$sp
-[ 	]+4c:[ 	]+160cd640[ 	]+lu32i.d[ 	]+\$zero, 26290
+[ 	]+48:[ 	]+00160cd6[ 	].*
+[ 	]+4c:[ 	]+160cd640[ 	].*
 [ 	]+4c: R_LARCH_ADD6[ 	]+L0\^A
 [ 	]+4c: R_LARCH_SUB6[ 	]+L0\^A
-[ 	]+50:[ 	]+0cd64000[ 	]+.word[ 	]+[ 	]+0x0cd64000
+[ 	]+50:[ 	]+0cd64000[ 	].*
 [ 	]+51: R_LARCH_ADD6[ 	]+L0\^A
 [ 	]+51: R_LARCH_SUB6[ 	]+L0\^A
-[ 	]+54:[ 	]+d6400016[ 	]+.word[ 	]+[ 	]+0xd6400016
+[ 	]+54:[ 	]+d6400016[ 	].*
 [ 	]+56: R_LARCH_ADD6[ 	]+L0\^A
 [ 	]+56: R_LARCH_SUB6[ 	]+L0\^A

-- 
Alan Modra


More information about the Binutils mailing list