6.8 Automatic IT block generation

The assembler can automatically insert an IT block for conditional instructions in Thumb code, without requiring the use of explicit IT instructions.

If you write the following code:

        AREA x, CODE
        THUMB
        MOVNE   r0,r1 
        NOP
        IT      NE
        MOVNE   r0,r1
        END

the assembler generates the following instructions:

        IT      NE
        MOVNE   r0,r1
        NOP
        IT      NE
        MOVNE   r0,r1

You can receive warning messages about this automatic generation of IT blocks when assembling Thumb code. To do this, use the following command-line option when invoking the assembler:

armasm --diag_warning 1763
Non-ConfidentialPDF file icon PDF versionARM DUI0473M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.