Add multiple of Streaming SVE predicate register size to scalar register
This instruction adds the Streaming SVE predicate register size in bytes multiplied by an immediate in the range -32 to 31 to the 64-bit source general-purpose register or current stack pointer and places the result in the 64-bit destination general-purpose register or current stack pointer.
This instruction does not require the PE to be in Streaming SVE mode.
Variants: FEAT_SME (PROFILE_A)
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | ||||||||||||||||
op | Rn | imm6 | Rd |
---|
ADDSPL <Xd|SP>, <Xn|SP>, #<imm>
if !IsFeatureImplemented(FEAT_SME) then EndOfDecode(Decode_UNDEF); constant integer n = UInt(Rn); constant integer d = UInt(Rd); constant integer imm = SInt(imm6);
CheckSMEEnabled(); constant integer SVL = CurrentSVL; constant integer len = imm * (SVL DIV 64); constant bits(64) operand1 = if n == 31 then SP[64] else X[n, 64]; constant bits(64) result = operand1 + len; if d == 31 then SP[64] = result; else X[d, 64] = result;
If PSTATE.DIT is 1: