diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-11-04 13:47:59 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-11-10 10:11:25 -0800 |
commit | 9373f27599a82ed94d9366ad59f0235085a931af (patch) | |
tree | 9e2a3bce8a0497bb42f7c27cf0af8d7a851f6426 /sim/igen/lf.h | |
parent | 0be837be9fb4fc1f882a52a6fb7ad27e2f3023ae (diff) | |
download | gdb-9373f27599a82ed94d9366ad59f0235085a931af.zip gdb-9373f27599a82ed94d9366ad59f0235085a931af.tar.gz gdb-9373f27599a82ed94d9366ad59f0235085a931af.tar.bz2 |
i386: Check invalid (%dx) usage
(%dx) isn't a valid memory address in any modes. It is used as a special
memory operand for input/output port address in AT&T syntax and should
only be used with input/output instructions. Update i386_att_operand to
set i.input_output_operand to true for (%dx) and issue an error if (%dx)
is used with non-input/output instructions.
PR gas/29751
* config/tc-i386.c (_i386_insn): Add input_output_operand.
(md_assemble): Issue an error if input/output memory operand is
used with non-input/output instructions.
(i386_att_operand): Set i.input_output_operand to true for
(%dx).
* testsuite/gas/i386/inval.l: Updated.
* testsuite/gas/i386/x86-64-inval.l: Likewise.
* testsuite/gas/i386/inval.s: Add tests for invalid (%dx) usage.
* testsuite/gas/i386/x86-64-inval.s: Likewise.
Diffstat (limited to 'sim/igen/lf.h')
0 files changed, 0 insertions, 0 deletions