You copied the Doc URL to your clipboard.

16.144 TST (immediate)

Test bits (immediate), setting the condition flags and discarding the result.

This instruction is an alias of ANDS (immediate).

Syntax

TST Wn, #imm ; 32-bit general registers

Equivalent to ANDS WZR, Wn, #imm.

TST Xn, #imm ; 64-bit general registers

Equivalent to ANDS XZR, Xn, #imm.

Where:

Wn

Is the 32-bit name of the general-purpose source register.

Xn

Is the 64-bit name of the general-purpose source register.

imm

Is the bitmask immediate.

Operation

Rn AND imm, where R is either W or X.

Was this page helpful? Yes No