[PATCH 2/4] S12Z: GAS: Issue warning if TFR/EXG have identical source and destination.
Nick Clifton
nickc@redhat.com
Fri Feb 1 10:51:00 GMT 2019
Hi John,
> It is permissible for the source and destination operands of TFR and EXG to be
> the same register. However it is a pointless instruction and anyone writing it
> has probably made a mistake.
I don't suppose that the ISA designers intended that this sort of instruction be
treated as a NOP, with the idea that in future ISA extensions they might be given
new semantics ?
> gas/
> * config/tc-s12z.c (tfr): Emit warning if operands are the same.
> * testsuite/gas/s12z/exg.d: New test case.
> * testsuite/gas/s12z/exg.l: New file.
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list