XAR
Exclusive-OR and rotate
This instruction performs a bitwise exclusive-OR of the
128-bit vectors in the two source SIMD&FP registers, rotates each
64-bit element of the resulting 128-bit vector right by the value
specified by a 6-bit immediate value, and writes the result to
the destination SIMD&FP register.
If PSTATE.DIT is 1:
The execution time of this instruction is independent of:
The values of the data supplied in any of its registers.
The values of the NZCV flags.
The response of this instruction to asynchronous exceptions does not vary based on:
The values of the data supplied in any of its registers.
The values of the NZCV flags.
1
1
0
0
1
1
1
0
1
0
0
XAR <Vd>.2D, <Vn>.2D, <Vm>.2D, #<imm6>
if !IsFeatureImplemented(FEAT_SHA3) then UNDEFINED;
constant integer d = UInt(Rd);
constant integer n = UInt(Rn);
constant integer m = UInt(Rm);
<Vd>
Is the name of the SIMD&FP destination register, encoded in the "Rd" field.
<Vn>
Is the name of the first SIMD&FP source register, encoded in the "Rn" field.
<Vm>
Is the name of the second SIMD&FP source register, encoded in the "Rm" field.
<imm6>
Is a rotation right, encoded in "imm6".
AArch64.CheckFPAdvSIMDEnabled();
constant bits(128) Vm = V[m, 128];
constant bits(128) Vn = V[n, 128];
constant bits(128) tmp = Vn EOR Vm;
V[d, 128] = ROR(tmp<127:64>, UInt(imm6)):ROR(tmp<63:0>, UInt(imm6));