FCVT (widening)

Multi-vector convert from half-precision to single-precision (in-order)

This instruction converts each element of the source vector from half-precision to single-precision floating-point, and places the results in the double-width destination elements of the destination vectors.

This instruction follows SME2 floating-point numerical behaviors corresponding to instructions that place their results in one or more SVE Z vectors.

This instruction is unpredicated.

ID_AA64SMFR0_EL1.F16F16 indicates whether this instruction is implemented.

Encoding: SME2

Variants: FEAT_SME_F16F16 (ARMv9.4)

313029282726252423222120191817161514131211109876543210
11000001101000001110000
ZnZdL

FCVT { <Zd1>.S-<Zd2>.S }, <Zn>.H

Decoding algorithm

if !IsFeatureImplemented(FEAT_SME_F16F16) then EndOfDecode(Decode_UNDEF);
constant integer n = UInt(Zn);
constant integer d = UInt(Zd:'0');

Operation

CheckStreamingSVEEnabled();
constant integer VL = CurrentVL;
constant integer elements = VL DIV 16;
constant bits(VL) operand = Z[n, VL];
bits(2*VL) result;

for e = 0 to elements-1
    constant bits(16) element = Elem[operand, e, 16];
    constant bits(32) res = FPConvertSVE(element, FPCR, 32);
    Elem[result, e, 32] = res;

Z[d+0, VL] = result;
Z[d+1, VL] = result<2*VL-1:VL>;

Explanations

<Zd1>: Is the name of the first scalable vector register of the destination multi-vector group, encoded as "Zd" times 2.
<Zd2>: Is the name of the second scalable vector register of the destination multi-vector group, encoded as "Zd" times 2 plus 1.
<Zn>: Is the name of the source scalable vector register, encoded in the "Zn" field.