REV (vector)
Reverse all elements in a vector (unpredicated)
Reverse the order of all elements in the source vector and place in the destination vector. This instruction is unpredicated.
Green
False
True
0
0
0
0
0
1
0
1
1
1
1
0
0
0
0
0
1
1
1
0
REV <Zd>.<T>, <Zn>.<T>
if !IsFeatureImplemented(FEAT_SVE) && !IsFeatureImplemented(FEAT_SME) then UNDEFINED;
constant integer esize = 8 << UInt(size);
constant integer n = UInt(Zn);
constant integer d = UInt(Zd);
<Zd>
Is the name of the destination scalable vector register, encoded in the "Zd" field.
<T>
Is the size specifier,
size
<T>
00
B
01
H
10
S
11
D
<Zn>
Is the name of the source scalable vector register, encoded in the "Zn" field.
CheckSVEEnabled();
constant integer VL = CurrentVL;
constant integer PL = VL DIV 8;
constant bits(VL) operand = Z[n, VL];
constant bits(VL) result = Reverse(operand, esize);
Z[d, VL] = result;