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] [ARC] Update conditions for illegal placed instructions.


Hi Claudiu,

> gas/
> 2017-06-07  Claudiu Zissulescu  <claziss@synopsys.com>
> 
> 	* /config/tc-arc.c (is_br_jmp_insn_p): Update macro with known
> 	instructions to be accounted as jumps.
> 	(assemble_insn): Check for limms into the delay slots.  Emit an
> 	error if so.
> 	* testsuite/gas/arc/asm-errors-3.d: New file.
> 	* testsuite/gas/arc/asm-errors-3.err: Likewise.
> 	* testsuite/gas/arc/asm-errors-3.s: Likewise.

Approved - please apply.

Cheers
  Nick

PS. Sorry for the delay.

PPS: Looking to the future, if you add more classes of ARC instructions
then the is_br_jmp_insn macro might need updating.  I was wondering if it
would be better if the type of instruction were encoded into the opcode
structure directly, so that you do not need to test for a whole range of
classes...


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