AUTIASPPCR

Authenticate return address using key A, using a register

This instruction authenticates an instruction address, using two modifiers and key A.

If the authentication passes, the upper bits of the address are restored to enable subsequent use of the address. For information on behavior if the authentication fails, see Faulting on pointer authentication.

The address is in X30.

The first modifier is in SP.

The second modifier is in the general-purpose register that is specified by <Xn>.

Encoding: Integer

Variants: FEAT_PAuth_LR (ARMv9.5)

313029282726252423222120191817161514131211109876543210
110110101100000110010011110
sfSopcode2opcodeRnRd

AUTIASPPCR <Xn>

Decoding algorithm

if !IsFeatureImplemented(FEAT_PAuth_LR) then EndOfDecode(Decode_UNDEF);

constant integer d = 30;
constant integer n = UInt(Rn);
constant boolean auth_combined = FALSE;

Operation

X[d, 64] = AuthIA2(X[d, 64], SP[64], X[n, 64], auth_combined);

Explanations

<Xn>: Is the 64-bit name of the general-purpose source register, encoded in the "Rn" field.