fround.s

Rounds the single-precision floating-point number in floating-point register _fs1_ to an integer, according to the rounding mode specified in the instruction’s _rm_ field. It then writes that integer, represented as a single-precision floating-point number, to floating-point register _fd_. Zero and infinite inputs are copied to _fd_ unmodified. Signaling NaN inputs cause the invalid operation exception flag to be set; no other exception flags are set. FROUND.S is encoded like FCVT.S.D, but with rs2=4.

Synopsis

fround.s fd, fs1, rm

Encoding

Type:

067111214151920311010011fdrmfs1010000000100
funct7: 0100000
funct3: ---
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fround.s in rvcodecjs

Availability