S/390: Fix optional operand handling after memory addresses
authorAndreas Krebbel <krebbel@linux.ibm.com>
Fri, 9 Nov 2018 10:00:47 +0000 (11:00 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Fri, 9 Nov 2018 10:01:01 +0000 (11:01 +0100)
commit13daa8e4889a971309f7d46a8d49129cb26088a5
treef91d0ec075f4c52dc043950d19ea9d3bf55c12cb
parent0e2779e98dc1251b469db690458d14262c72e303
S/390: Fix optional operand handling after memory addresses

Instructions having an optional argument following a memory address
operand were not handled correctly if the optional argument was not
specified.

gas/ChangeLog:

2018-11-09  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/tc-s390.c (skip_optargs_p): New function.
(md_gather_operands): Use skip_optargs_p.
* testsuite/gas/s390/s390.exp: Run the new test.
* testsuite/gas/s390/zarch-optargs.d: New test.
* testsuite/gas/s390/zarch-optargs.s: New test.
gas/config/tc-s390.c
gas/testsuite/gas/s390/s390.exp
gas/testsuite/gas/s390/zarch-optargs.d [new file with mode: 0644]
gas/testsuite/gas/s390/zarch-optargs.s [new file with mode: 0644]