AUTDA, AUTDZA
Authenticate data address, using key A
This instruction authenticates a data address, using a modifier and key A.
The address is in the general-purpose register that is specified by
<Xd>.
The modifier is:
In the general-purpose register or stack pointer that is specified
by <Xn|SP>, for AUTDA.
The value zero, for AUTDZA.
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.
1
1
0
1
1
0
1
0
1
1
0
0
0
0
0
1
0
0
1
1
0
0
AUTDA <Xd>, <Xn|SP>
1
1
1
1
1
1
AUTDZA <Xd>
if !IsFeatureImplemented(FEAT_PAuth) then UNDEFINED;
if Z == '1' && Rn != '11111' then UNDEFINED;
constant boolean auth_combined = FALSE;
constant integer d = UInt(Rd);
constant integer n = UInt(Rn);
constant boolean source_is_sp = Z == '0' && n == 31;
<Xd>
Is the 64-bit name of the general-purpose destination register, encoded in the "Rd" field.
<Xn|SP>
Is the 64-bit name of the general-purpose source register or stack pointer, encoded in the "Rn" field.
if source_is_sp then
X[d, 64] = AuthDA(X[d, 64], SP[], auth_combined);
else
X[d, 64] = AuthDA(X[d, 64], X[n, 64], auth_combined);