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 uses opcode 1010011 (0x53), funct7 0100010, rs2 fixed 8 (BF16.S). The rs1 and rs2 fields select the two source registers, and rd selects the destination register.
FCVT.BF16.S (Zfbfmin, depending on F) narrows the single-precision FP32 value in f[rs1] to BF16, rounded according to the instruction's encoded 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 # f0 = bf16(f1), rounded according to the encoded rm field».
Understand this scenario with real code like «fcvt.bf16.s f0, f1 # f0 = bf16(f1), rounded according to the encoded rm field».
Understand this scenario with real code like «fcvt.bf16.s f0, f1 # f0 = bf16(f1), rounded according to the encoded rm field».
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.