diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2022-05-09 21:57:28 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2022-05-09 21:59:59 +0200 |
commit | 0cfd6cffde32726ca69cde6ed3cc1ece21b9cf7c (patch) | |
tree | b8fb529ac16734d77b3d6fc911c7f0c54c3e1e8b /gdb/rust-lang.c | |
parent | 77399b529808626f764bcc347be0d6e8b6b167ce (diff) | |
download | gdb-0cfd6cffde32726ca69cde6ed3cc1ece21b9cf7c.zip gdb-0cfd6cffde32726ca69cde6ed3cc1ece21b9cf7c.tar.gz gdb-0cfd6cffde32726ca69cde6ed3cc1ece21b9cf7c.tar.bz2 |
IBM zSystems: Accept (. - 0x100000000) PCRel32 operands
as does not accept instructions like brasl %r0,.-0x100000000, because
of two problems with the generic overflow check:
1. PCRel32 operands are signed, but are treated as unsigned.
2. The allowed range for these operands is [-(1 << 32), (1 << 32) - 1],
and not [-(1 << 31), (1 << 31) - 1].
Fix both by disabling the generic overflow check - it's not needed,
because s390_insert_operand () performs its own.
gas/
* config/tc-s390.c (md_gather_operands): Set fx_no_overflow.
* testsuite/gas/s390/s390.exp: Add zarch-z900-err.
* testsuite/gas/s390/esa-z900.d: New test.
* testsuite/gas/s390/esa-z900.s: New test.
* testsuite/gas/s390/zarch-z900-err.l: New test.
* testsuite/gas/s390/zarch-z900-err.s: New test.
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions