tst.w

Test (Wide)

TST.W <Rn>, <Operand2>

Thumb-2 32-bit Test (AND and update flags).

Details

The Test instruction thumb-2 32-bit Test (AND and update flags).

Pseudocode Operation

// Thumb-2 32-bit Test (AND and update flags)

Example

TST.W r1, r2

Encoding

Binary Layout
111010100001
Rn
0
imm3
1111
imm8
 
Format Thumb2 Data Proc
Opcode 0xEA100F00
Extension T32 (Thumb2)

Operands

  • Rn
    First source / base general-purpose register
  • Operand2
    Flexible second operand (register or shifted register)