aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/run-time-clock.cc
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2024-11-29 15:37:19 +0100
committerJens Remus <jremus@linux.ibm.com>2024-11-29 15:37:19 +0100
commit36bbf8646c8b885ddb1a7e617e85fb29bead6f53 (patch)
tree3a75beb4dd46e7f93410ad452d4c3d8654105d66 /gdbsupport/run-time-clock.cc
parent453f481aabf6b552dc83dc63c4f62ed2a6b41ded (diff)
downloadbinutils-36bbf8646c8b885ddb1a7e617e85fb29bead6f53.zip
binutils-36bbf8646c8b885ddb1a7e617e85fb29bead6f53.tar.gz
binutils-36bbf8646c8b885ddb1a7e617e85fb29bead6f53.tar.bz2
s390: Treat addressing operand sequence as one in disassembler
Reuse logic introduced with the preceding commit in the assembler to treat addressing operand sequences D(X,B), D(B), and D(L,B) as one with regards to optional last operands (i.e. optparm and optparm2). With this "nop" now disassembles into "nop" instead of "nop 0". opcodes/ * s390-dis.c (operand_count): New helper to count the remaining operands, treating D(X,B), D(B), and D(L,B) as one. (skip_optargs_p): New helper to test whether remaining operands are optional. (skip_optargs_zero_p): New helper to test whether remaining operands are optional and their values are zero. (s390_print_insn_with_opcode): Use skip_optargs_zero_p to skip optional last operands with a value of zero. gas/testsuite/ * gas/s390/zarch-optargs.d (nop): Adjust test case accordingly. Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'gdbsupport/run-time-clock.cc')
0 files changed, 0 insertions, 0 deletions