TTEST

Test transaction state

This instruction writes the depth of the transaction to the destination register, or the value 0 otherwise.

Encoding: System

Variants: FEAT_TME (ARMv9.0)

313029282726252423222120191817161514131211109876543210
110101010010001100110001011
op1CRnCRmop2Rt

TTEST <Xt>

Decoding algorithm

if !IsFeatureImplemented(FEAT_TME) then EndOfDecode(Decode_UNDEF);
constant integer t = UInt(Rt);

Operation

if !IsTMEEnabled() then UNDEFINED;

X[t, 64] = (TSTATE.depth)<63:0>;

Explanations

<Xt>: Is the 64-bit name of the general-purpose destination register, encoded in the "Rt" field.