This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/4] S12Z: GAS: Issue warning if TFR/EXG have identical source and destination.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]