FROUND.S
Float Round to Integer
FROUND.S rd, rs1, rm
Rounds a float to the nearest integer value (returned as a float).
Details
Rounds the single-precision (32-bit) floating-point value in rs1 to an integer value (still in FP format), using the rounding mode in the rm field. The result preserves the FP type.
Pseudocode Operation
F[rd] = round(F[rs1]);
Example
FROUND.S t0, a0, rm
Encoding
Binary Layout
0100000
31:25
00100
24:20
rs1
19:15
rm
rd
14:10
1010011
9:3
Operands
-
rd
Destination register (integer) -
rs1
Source register 1 (integer) -
rm
Mode