]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
s390: Position independent verification of relative addressing
authorJens Remus <jremus@linux.ibm.com>
Thu, 23 Nov 2023 14:43:36 +0000 (15:43 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 23 Nov 2023 14:51:03 +0000 (15:51 +0100)
commit9c422a59953cd6b64bc8ed5f3d6e72a180f13540
treea821b7cd402a2db9334ec6c4165b2d677522d18f
parentf5027ee818100ee6411a21592d3297610ae09657
s390: Position independent verification of relative addressing

Opcode test cases for z/Architecture instructions that use relative
addressing contained hardcoded offsets in the test verification
patterns. Inserting or reordering of instructions into those test cases
therefore required updating of those hardcoded offsets.

Use regular expressions with backreferences to verify results of test
cases containing instructions with relative addressing. This makes the
verification position independent.

gas/
* testsuite/gas/s390/esa-g5.d: Make opcode test verification
  pattern position independent where possible.
* testsuite/gas/s390/esa-z900.d: Likewise.
* testsuite/gas/s390/zarch-z900.d: Likewise.
* testsuite/gas/s390/zarch-z10.d: Likewise.
* testsuite/gas/s390/zarch-z196.d: Likewise.
* testsuite/gas/s390/zarch-zEC12.d: Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
gas/testsuite/gas/s390/esa-g5.d
gas/testsuite/gas/s390/esa-z900.d
gas/testsuite/gas/s390/zarch-z10.d
gas/testsuite/gas/s390/zarch-z196.d
gas/testsuite/gas/s390/zarch-z900.d
gas/testsuite/gas/s390/zarch-zEC12.d