Does FCVT.BF16.S imply BF16 add/sub/mul/div support?
No. Zfbfmin/Zvfbfmin mainly provide BF16/FP32 conversion; Zvfbfwma provides widening multiply-accumulate.
Narrow FP32 to BF16, rounded by rm/frm.
FCVT.BF16.S (Zfbfmin, depending on F) narrows the single-precision FP32 value in f[rs1] to BF16, rounded according to the instruction instruction rm field, and writes the BF16 result to f[rd] with the normal NaN-boxing behavior for a narrower floating-point result. It is a minimal FP32/BF16 conversion instruction and does not provide native BF16 arithmetic. It may set Overflow, Underflow, Inexact, and Invalid exception flags.
FCVT.BF16.S belongs to the RISC-V BF16 extensions; BF16 is a 16-bit FP format with 1 sign bit, 8 exponent bits, and 7 fraction bits.
Understand this scenario with real code like «fcvt.bf16.s f0, f1, rne # f0 = bf16(f1), round nearest even».
Understand this scenario with real code like «fcvt.bf16.s f0, f1, rne # f0 = bf16(f1), round nearest even».
Understand this scenario with real code like «fcvt.bf16.s f0, f1, rne # f0 = bf16(f1), round nearest even».
No. Zfbfmin/Zvfbfmin mainly provide BF16/FP32 conversion; Zvfbfwma provides widening multiply-accumulate.
The scalar form does not use V SEW; it operates on BF16/FP32 scalar values in FP registers.