# `fmv.x.w`

[RISC-V Documentation](https://asm-editor.specy.app/documentation/risc-v.md) › [Instructions](https://asm-editor.specy.app/documentation/risc-v/instruction.md)

Web page: https://asm-editor.specy.app/documentation/risc-v/instruction/fmv.x.w

**Move FP bits to integer register** · Pseudo-instruction

Category: Floating point

Copies the raw 32 bits of the second register into the first without converting them, sign-extending on RV64.

Also written as: `fmv.x.s`

[RISC-V manual: fmv.x.s](https://docs.riscv.org/reference/isa/v20260120/unpriv/f-st-ext.html#norm:fmv-x-w_op)

Used in: [Floating point and the F and D extensions](https://asm-editor.specy.app/learn/courses/risc-v/think-in-assembly/floating-point-and-the-f-and-d-extensions.md) (RISC-V assembly)

## Forms

- `fmv.x.w t1, f1`
  - `fmv.x.w t1, f1` → `fmv.x.s t1, f1`

## 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`.

## Example

```riscv
# The source bits encode single 1.0; fmv.x.w writes 0x3F800000 to t2.
.text
li t0, 1065353216
fmv.s.x f1, t0
fmv.x.w t2, f1
```
