fcvt.h.s

Converts a half-precision number in floating-point register _fs1_ into a single-precision floating-point number in floating-point register _fd_. `fcvt.h.s` rounds according to the _rm_ field. All floating-point conversion instructions set the Inexact exception flag if the rounded result differs from the operand value and the Invalid exception flag is not set.

Synopsis

fcvt.h.s fd, fs1, rm

Encoding

Type:

067111214151920311010011fdrmfs1010001000000
funct7: 0100010
funct3: ---
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fcvt.h.s in rvcodecjs

Availability