SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonbfloat16x4_tvcvt_bf16_f32(float32x4_t a)Data type conversion / Conversions
Description
Floating-point convert from single-precision to BFloat16 format (vector) reads each single-precision element in the SIMD&FP source vector, converts each value to BFloat16 format, and writes the results in the lower or upper half of the SIMD&FP destination vector. The result elements are half the width of the source elements.
Results
Vd.4H result
This intrinsic compiles to the following instructions:

BFCVTN Vd.4H,Vn.4S

Argument Preparation
a register: Vn.4S
Architectures
A32, A64

Operation

CheckFPAdvSIMDEnabled64();
bits(128) operand = V[n];
bits(64) result;

for e = 0 to elements-1
    Elem[result, e, 16] = FPConvertBF(Elem[operand, e, 32], FPCR[]);

Vpart[d, part] = result;