fcvt.lu.d

Convert unsigned 64 bit integer from double RV64 only

Rounds the double-precision value in the second register to an unsigned 64-bit integer and stores it in the first.

RISC-V manual: fcvt.lu.d

Forms

  • fcvt.lu.d , ,

Pseudo-instructions

The processor does not have these forms. The assembler replaces each of them with one or more real instructions. Open a row to see them.

Operands

t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.
f1
Any floating-point register, f0 to f31, or its named alias, such as ft0, fa0 or ft11.
rm
A rounding mode: rne (nearest, ties to even), rtz (toward zero), rdn (toward negative infinity), rup (toward positive infinity), rmm (nearest, ties away from zero) or dyn (use the rounding mode in fcsr).

This example runs on RV64.

# Convert the value 6.0 from d to lu; t1 becomes 6.
.text
li t0, 6
fcvt.d.w f1, t0
fcvt.lu.d t1, f1