[patch] Thumb2 conditional execution
Paul Brook
paul@codesourcery.com
Thu Aug 4 15:08:00 GMT 2005
The attached patch implements assembly of thumb2 conditional instructions.
It verifies that instructions following an IT instruction have the correct
conditional suffixes, and other instructions to not have conditional
suffixes. It also ensures 16-bit instructions are used correctly. These do
not set the condition codes when used inside an IT block.
Tested on arm-none-eabi.
Ok?
Paul
2005-08-04 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (current_it_mask, current_cc): New variables.
(do_t_add_sub): Use correct encodings inside IT block.
(do_t_arit3c): Ditto.
(do_t_it): Simplify logic. Set current_it_mask and current_cc.
(md_assemble): Verify conditional suffixes agains IT blocks.
gas/testsuite/
* gas/arm/thumb32.s: Use correct conditional suffixes inside IT
blocks.
* gas/arm/thumb2_it.d, gas/arm/thumb2_it.s: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.gas_it
Type: text/x-diff
Size: 8970 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050804/ab76515a/attachment.bin>
More information about the Binutils
mailing list