diff options
author | Jens Remus <jremus@linux.ibm.com> | 2024-03-01 12:45:14 +0100 |
---|---|---|
committer | Jens Remus <jremus@linux.ibm.com> | 2024-03-01 12:45:14 +0100 |
commit | aacf780bca2940a9feb4e9d1b1d9e2033f1ce4ac (patch) | |
tree | 9160ab4eb204eed0690844a0371b6dd3024c7f84 /gas/NEWS | |
parent | 75a28d1a97ace81c8481fd1c85d21e6f22e68924 (diff) | |
download | gdb-aacf780bca2940a9feb4e9d1b1d9e2033f1ce4ac.zip gdb-aacf780bca2940a9feb4e9d1b1d9e2033f1ce4ac.tar.gz gdb-aacf780bca2940a9feb4e9d1b1d9e2033f1ce4ac.tar.bz2 |
s390: Allow to explicitly omit base register operand in assembly
The base register operand B may be omitted in D(B) by coding D and in
D(L,B) by coding D(L). The index register operand X may be omitted in
D(X,B) by coding D(B) or explicitly omitted by coding D(,B). In both
cases the omitted base register operand value defaults to zero.
Allow to explicitly omit the base register operand B in D(X,B) and
D(L,B) by coding D(X,) and D(L,). Default the omitted base register
operand value to zero.
gas/
* config/tc-s390.c: Allow to explicitly omit the base register
operand in assembly.
* NEWS: Mention that the base register now may be omitted on
s390.
* gas/testsuite/gas/s390/zarch-base-index-0.s: Update test cases
for change to allow to explicitly omit the base register
operand in assembly.
* gas/testsuite/gas/s390/zarch-base-index-0.d: Likewise.
* gas/testsuite/gas/s390/zarch-base-index-0-err.s: Likewise.
* gas/testsuite/gas/s390/zarch-base-index-0-err.l: Likewise.
* gas/testsuite/gas/s390/zarch-omitted-base-index.s: Likewise.
* gas/testsuite/gas/s390/zarch-omitted-base-index.d: Likewise.
* gas/testsuite/gas/s390/zarch-omitted-base-index-err.s:
Likewise.
* gas/testsuite/gas/s390/zarch-omitted-base-index-err.l:
Likewise.
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'gas/NEWS')
-rw-r--r-- | gas/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,9 @@ -*- text -*- +* The base register operand in D(X,B) and D(L,B) may be explicitly omitted + in assembly on s390. It can now be coded as D(X,) or D(L,) instead of D(X,0) + D(X,%r0), D(L,0), and D(L,%r0). + * Warn when a register name type does not match the operand type on s390. Add support for s390-specific option "warn-regtype-mismatch=[strict|relaxed| no]" to override the register name type check behavior. The default |