LUTI2 (8-bit and 16-bit)
Lookup table read with 2-bit indices (8-bit and 16-bit)
This instruction copies indexed 8-bit or 16-bit elements from the low 128 bits of the table vector to the destination vector using packed 2-bit indices from a segment of the source vector. A segment corresponds to a portion of the source vector that is consumed in order to fill the destination vector. The segment is selected by the vector segment index. This instruction is unpredicated.
It has encodings from 2 classes: Byte and Halfword
Byte class
((FEAT_SVE2 || FEAT_SME2) && FEAT_LUT)
| 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | i2 | 1 | Zm | 1 | 0 | 1 | 1 | 0 | 0 | Zn | Zd | |||||||||||||
Decode
if ((!IsFeatureImplemented(FEAT_SVE2) && !IsFeatureImplemented(FEAT_SME2)) ||
!IsFeatureImplemented(FEAT_LUT)) then EndOfDecode(Decode_UNDEF);
end;
let isize : integer{} = 2;
let esize : integer{} = 8;
let m : integer = UInt(Zm);
let n : integer = UInt(Zn);
let d : integer = UInt(Zd);
let part : integer = UInt(i2);
Halfword class
((FEAT_SVE2 || FEAT_SME2) && FEAT_LUT)
| 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | i3h | 1 | Zm | 1 | 0 | 1 | i3l | 1 | 0 | Zn | Zd | |||||||||||||
Decode
if ((!IsFeatureImplemented(FEAT_SVE2) && !IsFeatureImplemented(FEAT_SME2)) ||
!IsFeatureImplemented(FEAT_LUT)) then EndOfDecode(Decode_UNDEF);
end;
let isize : integer{} = 2;
let esize : integer{} = 16;
let m : integer = UInt(Zm);
let n : integer = UInt(Zn);
let d : integer = UInt(Zd);
let part : integer = UInt(i3h::i3l);
Assembler Symbols
| <Zd> |
Is the name of the destination scalable vector register, encoded in the "Zd" field. |
| <Zn> |
Is the name of the table vector register, encoded in the "Zn" field. |
| <Zm> |
Is the name of the source scalable vector register, encoded in the "Zm" field. |
| <index> |
For the "Byte" variant: is the vector segment index, in the range 0 to 3, encoded in the "i2" field. |
|
For the "Halfword" variant: is the vector segment index, in the range 0 to 7, encoded in the "i3h:i3l" fields. |
Operation
if IsFeatureImplemented(FEAT_SME2) then CheckSVEEnabled(); else CheckNonStreamingSVEEnabled(); end;
let VL : integer{} = CurrentVL();
let elements : integer = VL DIV esize;
let ibase : integer = elements * part;
let indexes : bits(VL) = Z{}(m);
let table : bits(VL) = Z{}(n);
var result : bits(VL);
for e = 0 to elements-1 do
let index : integer = UInt(indexes[(ibase + e)*:isize]);
result[e*:esize] = table[index*:esize];
end;
Z{VL}(d) = result;
Operational information
This instruction is a data-independent-time instruction as described in About PSTATE.DIT.
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.