Disallow PC relative for CMPI on MC68000/10
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 18 Apr 2020 12:32:39 +0000 (14:32 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 21 Apr 2020 14:53:36 +0000 (16:53 +0200)
commitbb2a1453479dfa2589f3b62853d4e1cf60825e98
tree059cbf2028ab35d527c7f415f6e0bb55cacde748
parentc36876fe5b5bac1c404ab2ca82bfbfb2ed9a2717
Disallow PC relative for CMPI on MC68000/10

The MC68000/10 decodes the second operand of CMPI strictly as destination
operand, which disallows PC relative addressing, even though the insn
doesn't write to the operand.  This restriction has only been lifted for
the MC68020+ and CPU32.

opcodes:
PR 25848
* m68k-opc.c (m68k_opcodes): Allow pc-rel for second operand of
cmpi only on m68020up and cpu32.

gas:
PR 25848
* testsuite/gas/m68k/operands.s: Add tests for cmpi.
* testsuite/gas/m68k/operands.d: Update.
* testsuite/gas/m68k/op68000.d: Update for new error messages.
gas/ChangeLog
gas/testsuite/gas/m68k/op68000.d
gas/testsuite/gas/m68k/operands.d
gas/testsuite/gas/m68k/operands.s
opcodes/ChangeLog
opcodes/m68k-opc.c
This page took 0.024833 seconds and 4 git commands to generate.