← Home

fcvt.lu.s

Floating-Point Convert Single-Precision to Unsigned Long

The `fcvt.lu.s` instruction converts a floating-point number in floating-point register `fs1` to a unsigned 64-bit integer, in integer register `xd`.

Assembly format

fcvt.lu.s xd, fs1, rm

Encoding

313029282726252423222120191817161514131211109876543210
110000000011fs1rmxd1010011

Decode variables

VariableBitsWidth
fs1[19:15]5
rm[14:12]3
xd[11:7]5

Execution

check_f_ok($encoding);
RoundingMode rounding_mode = rm_to_mode(rm, $encoding);
X[xd] = f32_to_ui64(F[fs1], rounding_mode);

Defined by

RV64 and F

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.