Can FMV.X.D be used on RV32?
No. The official D extension defines FMV.X.D / FMV.D.X 64-bit integer/FP register moves only when XLEN>=64.
RV64 double-precision bit-pattern move from FP to integer register, with no numeric conversion.
rd: integer x0–x31; rs1: FP f0–f31. x0 discards writes, while f0 is an ordinary FP source; there is no immediate or rm operand.
OP-FP fixes funct7=1110001, rs2=00000, funct3=000 and opcode=1010011; only rd and rs1 vary.
D depends on F and requires XLEN≥64, FLEN≥64 and enabled FP state. Read the low 64 bits of f[rs1], ignoring higher bits.
Copy the double-precision encoding bit for bit to x[rd], preserving non-canonical NaN payloads without rounding or setting fflags; this is not FCVT.L.D numeric conversion.
FMV.X.D moves the IEEE 754 double-precision 64-bit encoding between integer and floating-point registers. It does not modify transferred bits and preserves non-canonical NaN payloads; this form is defined only when XLEN>=64. It writes the double-precision encoding from f[rs1] to x[rd] and sets no FP exception flags.
Shows the D-extension FMV.X.D bit-pattern move: decode OP-FP fields, read the source bit pattern, then write the destination without numeric conversion.
Assumes required extensions and enabled FP state. Integer input covers XLEN bits; FP input supplies only the selected format's bit slice, ignoring upper NaN-box bits.
The word is split as an R-type OP-FP instruction; FMV bit moves use opcode 1010011.
FMV.X.D is defined only when XLEN>=64 and writes the 64-bit double-precision encoding unchanged to the integer register without setting fflags.
This animation shows only D-extension FMV ISA-visible encoding and bit-pattern movement; it does not model FPU pipelines, numeric FP interpretation, exception handling, or microarchitecture.
FMV.X.D is defined only when XLEN>=64 and moves the 64-bit double-precision encoding unchanged into an integer register. It does not convert a double to an integer value and does not canonicalize NaN payloads.
With RV64, D and FP state enabled, initialize the low 64 bits of f0 to 0x7FF8000000000042 and execute fmv.x.d x10, f0 # x10 = bits of f0 (RV64). x10 receives the same 64-bit encoding, preserving the NaN payload and leaving fflags unchanged.
With RV64, D and FP state enabled, initialize the low 64 bits of f0 to 0x7FF8000000000042 and execute fmv.x.d x10, f0 # x10 = bits of f0 (RV64). x10 receives the same 64-bit encoding, preserving the NaN payload and leaving fflags unchanged.
With RV64, D and FP state enabled, initialize the low 64 bits of f0 to 0x7FF8000000000042 and execute fmv.x.d x10, f0 # x10 = bits of f0 (RV64). x10 receives the same 64-bit encoding, preserving the NaN payload and leaving fflags unchanged.
No. The official D extension defines FMV.X.D / FMV.D.X 64-bit integer/FP register moves only when XLEN>=64.
FMV.X.D preserves the 64-bit encoding bits; FCVT.L.D performs double-to-64-bit-integer numeric conversion, which can round and set fflags.