16.161 TST (immediate)

, setting the condition flags and discarding the result.

This instruction is an alias of ANDS (immediate).

The equivalent instruction is ANDS WZR, Wn, #imm.

Syntax

TST Wn, #imm ; 32-bit

TST Xn, #imm ; 64-bit

Where:

Wn
Is the 32-bit name of the general-purpose source register.
imm
The bitmask immediate.
Xn
Is the 64-bit name of the general-purpose source register.

Operation

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

Non-ConfidentialPDF file icon PDF versionDUI0801J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.