[patch] Assembly of new thumb2 instructions.

Paul Brook paul@codesourcery.com
Thu Jul 21 20:31:00 GMT 2005


The attached patch implements assembly of some new thumb2 instructions.
It also fixes a couple of related disassembler bugs.

Tested with cross to arm-none-eabi.
Ok?

Paul
2005-07-21  Paul Brook  <paul@codesourcery.com>

bfd/
	* reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
	* bfd-in2.h: Regeenrate.
	* libbfd.h: Regenerate.
gas/
	* config/tc-arm.c (parse_tb): New function.
	(enum operand_parse_code): Add OP_TB.
	(parse_operands): Handle OP_TB.
	(do_t_add_sub_w, do_t_tb): New functions.
	(insns): Add entries for addw, subw, tbb and tbh.
	(md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
gas/testsuite/
	* gas/arm/thumb32.s: Add tests for addw, subw, tbb and tbh.
	* gas/arm/thumb32.d: Ditto.
opcodes/
	* arm-dis.c (thumb32_opc): Fix addressing mode for tbh.
	(print_insn_thumb32): Fix decoding of thumb2 'I' operands.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.t2_insns
Type: text/x-diff
Size: 9101 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050721/951e3190/attachment.bin>


More information about the Binutils mailing list