Skip to content

Commit

Permalink
MIPS/GAS/testsuite: Fix n64 compact EH failures
Browse files Browse the repository at this point in the history
Expect a `.MIPS.options' section alternatively to `.reginfo' and ignore
contents of either as irrelevant for all the affected compact EH tests,
removing these regressions:

mips64-openbsd  -FAIL: Compact EH EB #1 with personality ID and FDE data
mips64-openbsd  -FAIL: Compact EH EB #2 with personality routine and FDE data
mips64-openbsd  -FAIL: Compact EH EB #3 with personality id and large FDE data
mips64-openbsd  -FAIL: Compact EH EB #4 with personality id, FDE data and LSDA
mips64-openbsd  -FAIL: Compact EH EB #5 with personality routine, FDE data and LSDA
mips64-openbsd  -FAIL: Compact EH EB #6 with personality id, LSDA and large FDE data
mips64-openbsd  -FAIL: Compact EH EL #1 with personality ID and FDE data
mips64-openbsd  -FAIL: Compact EH EL #2 with personality routine and FDE data
mips64-openbsd  -FAIL: Compact EH EL #3 with personality id and large FDE data
mips64-openbsd  -FAIL: Compact EH EL #4 with personality id, FDE data and LSDA
mips64-openbsd  -FAIL: Compact EH EL #5 with personality routine, FDE data and LSDA
mips64-openbsd  -FAIL: Compact EH EL #6 with personality id, LSDA and large FDE data
mips64el-openbsd  -FAIL: Compact EH EB #1 with personality ID and FDE data
mips64el-openbsd  -FAIL: Compact EH EB #2 with personality routine and FDE data
mips64el-openbsd  -FAIL: Compact EH EB #3 with personality id and large FDE data
mips64el-openbsd  -FAIL: Compact EH EB #4 with personality id, FDE data and LSDA
mips64el-openbsd  -FAIL: Compact EH EB #5 with personality routine, FDE data and LSDA
mips64el-openbsd  -FAIL: Compact EH EB #6 with personality id, LSDA and large FDE data
mips64el-openbsd  -FAIL: Compact EH EL #1 with personality ID and FDE data
mips64el-openbsd  -FAIL: Compact EH EL #2 with personality routine and FDE data
mips64el-openbsd  -FAIL: Compact EH EL #3 with personality id and large FDE data
mips64el-openbsd  -FAIL: Compact EH EL #4 with personality id, FDE data and LSDA
mips64el-openbsd  -FAIL: Compact EH EL #5 with personality routine, FDE data and LSDA
mips64el-openbsd  -FAIL: Compact EH EL #6 with personality id, LSDA and large FDE data

Co-Authored-By: Maciej W. Rozycki <macro@orcam.me.uk>

	gas/
	* testsuite/gas/mips/compact-eh-eb-1.d: Accept `.MIPS.options'
	section as an alternative to `.reginfo' and ignore contents of
	either.
	* testsuite/gas/mips/compact-eh-eb-2.d: Likewise.
	* testsuite/gas/mips/compact-eh-eb-3.d: Likewise.
	* testsuite/gas/mips/compact-eh-eb-4.d: Likewise.
	* testsuite/gas/mips/compact-eh-eb-5.d: Likewise.
	* testsuite/gas/mips/compact-eh-eb-6.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-1.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-2.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-3.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-4.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-5.d: Likewise.
	* testsuite/gas/mips/compact-eh-el-6.d: Likewise.
  • Loading branch information
YunQiang Su authored and maciej-w-rozycki committed Jul 28, 2023
1 parent ed4dca9 commit 316be2b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 36 deletions.
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-1.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ OFFSET +TYPE +VALUE

Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-2.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ Contents of section .group:
0000 00000001 00000007 00000008 .*
Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-3.d
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ OFFSET +TYPE +VALUE

Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-4.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ OFFSET +TYPE +VALUE
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-5.d
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ Contents of section .group:
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-eb-6.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ OFFSET +TYPE +VALUE
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-1.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ OFFSET +TYPE +VALUE

Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-2.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ Contents of section .group:
0000 01000000 07000000 08000000 .*
Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-3.d
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ OFFSET +TYPE +VALUE

Contents of section .text:
0000 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-4.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ OFFSET +TYPE +VALUE
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-5.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ Contents of section .group:
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down
5 changes: 2 additions & 3 deletions gas/testsuite/gas/mips/compact-eh-el-6.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ OFFSET +TYPE +VALUE
Contents of section .text:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000.*
Contents of section .reginfo:
0000 00000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section (.reginfo|.MIPS.options):
#...
Contents of section .MIPS.abiflags:
.*
.*
Expand Down

0 comments on commit 316be2b

Please sign in to comment.