diff options
author | Jan Beulich <jbeulich@novell.com> | 2016-07-01 08:56:13 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2016-07-01 08:56:13 +0200 |
commit | 8325cc6398187c12e0fe04a68a21e4eb5f44fa20 (patch) | |
tree | 971666a5509602274df0b1827230a3c533d018ee /gas/ChangeLog | |
parent | eefbbb8cbe2674ce4e70816ba4d80a848ab7e574 (diff) | |
download | gdb-8325cc6398187c12e0fe04a68a21e4eb5f44fa20.zip gdb-8325cc6398187c12e0fe04a68a21e4eb5f44fa20.tar.gz gdb-8325cc6398187c12e0fe04a68a21e4eb5f44fa20.tar.bz2 |
x86/Intel: fix operand checking for MOVSD
The dual purpose mnemonic (string move vs scalar double move) breaks
the assumption that the isstring flag would be set on both the first
and last entry in the current set of templates, which results in bogus
or missing diagnostics for the string move variant of the mnemonic.
Short of mostly rewriting i386_index_check() and its interaction with
the rest of the code, simply shrink the template set to just string
instructions when encountering the second memory operand, and run
i386_index_check() a second time for the first memory operand after
that reduction.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1e04d5a..a654185 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,18 @@ +2016-07-01 Jan Beulich <jbeulich@suse.com> + + * config/tc-i386.c (struct _i386_insn): New field memop1_string. + (md_assemble): Free first memory operand string. + (i386_index_check): Use repprefixok to distingush xlat from + other (real) string ops. + (maybe_adjust_templates): New. + (i386_att_operand). Call it. Store first memory operand string. + * config/tc-i386-intel.c (i386_intel_operand): Likewise. + * testsuite/gas/i386/intel-movs.s: New. + * testsuite/gas/i386/intel-movs32.d: New. + * testsuite/gas/i386/intel-movs64.d: New. + * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for + 64-bits tests with "--defsym x86_64=1 --strip-local-absolute". + 2016-06-30 Maciej W. Rozycki <macro@imgtec.com> * config/tc-mips.c (get_append_method): Fix a comment typo. |