diff options
author | John Darrington <john@darrington.wattle.id.au> | 2019-02-01 17:42:54 +0100 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2019-02-01 18:08:02 +0100 |
commit | 8b3a46f93c2b9ee839f806713afe7f88f0482214 (patch) | |
tree | 7e0311d430b1f446d4577bf54f94d1e3753db396 /bfd/coff-go32.c | |
parent | c75eca848b682c20dcd3ef850f67491295c116b1 (diff) | |
download | gdb-8b3a46f93c2b9ee839f806713afe7f88f0482214.zip gdb-8b3a46f93c2b9ee839f806713afe7f88f0482214.tar.gz gdb-8b3a46f93c2b9ee839f806713afe7f88f0482214.tar.bz2 |
S12Z: GAS: Disallow immediate destination operands
The assembler permitted instructions which attempted to assign to an immediate
operand. Bizarrely there is a valid machine code for such operations (although
the documentation says it's "inappropriate"). This change causes such attempts
to fail with an error message.
gas/
* config/tc-s12z.c (lex_opr): Add a parameter to indicate whether
immediate mode operands should be permitted.
* testsuite/s12z/imm-dest.d: New file.
* testsuite/s12z/imm-dest.l: New file.
* testsuite/s12z/imm-dest.s: New file.
* testsuite/s12z/s12z.exp: Add them.
Diffstat (limited to 'bfd/coff-go32.c')
0 files changed, 0 insertions, 0 deletions