vfmv.f.s
Vector floating-point to scalar move
- Extension
- V
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
vfmv.f.s fd, vs2- Length
- 32-bit
Encoding
| 3126 | 25 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 010000 | 1 | vs2 | 00000 | 001 | rd | 1010111 | |||||||||||||||||||||||||
Match 0x42001057, mask 0xfe0ff07f. Source: vfmv.f.s 31..26=0x10 25=1 vs2 19..15=0 14..12=0x1 rd 6..0=0x57 in riscv-opcodes/extensions/rv_v.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| vs2 | 24:20 | vs2 |
| rd | 11:7 | rd |
Description
Moves floating-point element from vector register vs2 to scalar floating-point register fd, using vector mask vm. This operation extracts a single element from the vector.
Description from riscv-unified-db, reformatted.