fround.q

Floating-Point Round Quad-Precision

This instruction is defined by:

Encoding

svg

Synopsis

The fround.q instruction rounds the quad-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 quad-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.q is encoded like fcvt.q.s, but with rs2=4.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<5> fs1 = $encoding[19:15];
Bits<3> rm = $encoding[14:12];
Bits<5> fd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original