FCVT.L.D

Convert Double to Long

FCVT.L.D rd, rs1

Converts a double-precision float to a 64-bit signed integer.

Details

Converts between floating-point types or between floating-point and integer. Result is rounded according to the dynamic rounding mode. Invalid conversions produce the IEEE default NaN or the appropriate integer saturation value.

Pseudocode Operation

R[rd] = f64_to_i64(F[rs1]);

Example

FCVT.L.D x10, f0

Encoding

Binary Layout
1100001
31:25
00010
24:20
rs1
19:15
rm
rd
14:10
1010011
9:3
 
Format I-Type (Float)
Opcode 0x53
Extension D

Operands

  • rd
    Dest (Long)
  • rs1
    Source (Double)