tst

Test (A32)

TST<c> <Rn>, <Operand2>

Bitwise AND and update flags (discard result).

Details

The Test instruction bitwise AND and update flags (discard result).

Pseudocode Operation

// Flags ← Operand2 AND SRC2 (result discarded)

Example

TST r1, r2

Encoding

Binary Layout
cond
00
1
1000
1
Rn
0000
imm12
 
Format Data Proc
Opcode 0x03100000
Extension A32 (Base)

Operands

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