| |||
| Home > Programmers Model > Program status registers > The IT bits | |||
IT[7:5] encodes the base condition code for the current IT block, if any. It contains b000 when no IT block is active.
IT[4:0] encodes the number of instructions that are to be conditionally executed, and whether the condition for each is the base condition code or the inverse of the base condition code. It contains b00000 when no IT block is active.
When an IT instruction is executed, these bits are set according to the condition in the instruction, and the Then and Else (T and E) parameters in the instruction. During execution of an IT block, IT[4:0] is shifted to:
reduce the number of instructions to be conditionally executed by one
move the next bit into position to form the least significant bit of the condition code.
For more information on the operation of the IT execution state bits, see the ARM Architecture Reference Manual.