vfwsub.vf
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvfbfa, Zvl32bSummary
Performs floating-point subtraction on elements from vector register vs2 and floating-point scalar register fs1, widens the results, and stores them in vector register vd, using vector mask vm. The operation follows IEEE 754 floating-point arithmetic rules.
Syntax / Encoding
vfwsub.vf vd, vs2, fs1, vm | 110010xxxxxxxxxxx101xxxxx1010111 (mask=0xfc00707f match=0xc8005057)
Cross-Chip Latency & Throughput (10 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes AX45MPV | — | 2 | — | RVV 1.0, VLEN=512 | rvv_bench_timings |
| SiFive P870 | — | 1.06 | — | RVV 1.0, VLEN=128 | rvv_bench_timings |
| SiFive X280 | — | 2.14 | — | RVV 1.0, VLEN=512 (Tenstorrent Blackhole) | rvv_bench_timings |
| SpacemiT X100 | — | 2 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| Tenstorrent Ascalon-X | — | 1 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| XuanTie C906 | — | 4 | — | RVV 0.7.1, VLEN=128 (Allwinner D1) | rvv_bench_timings |
| XuanTie C908 | — | 2 | — | RVV 1.0, VLEN=128 (Kendryte K230) | rvv_bench_timings |
| XuanTie C910 | — | 2.4 | — | RVV 0.7.1, VLEN=128 (TH1520) | rvv_bench_timings |
| XuanTie C920 (SG2042) | — | 2.4 | — | RVV 0.7.1, VLEN=128 (Milk-V Pioneer) | rvv_bench_timings |
| XuanTie C920v2 | — | 1 | — | RVV 1.0, VLEN=128 | rvv_bench_timings |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 110010xxxxxxxxxxx101xxxxx1010111 | 0xfc00707f / 0xc8005057 |
Operands
| Name | Description |
|---|---|
vm | bits [25:25] |
vs2 | bits [24:20] |
fs1 | bits [19:15] |
vd | bits [11:7] |
Reference Notes
Performs floating-point subtraction on elements from vector register vs2 and floating-point scalar register fs1, widens the results, and stores them in vector register vd, using vector mask vm. The operation follows IEEE 754 floating-point arithmetic rules.