vnclip.wx
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvl32bSummary
Performs narrowing signed clip operation on double-width elements from vector register vs2 using scalar clip value from register xs1 and stores results in vector register vd, using vector mask vm. The operation clips values to a specified range and packs the result into a narrower destination.
Syntax / Encoding
vnclip.wx vd, vs2, xs1, vm | 101111xxxxxxxxxxx100xxxxx1010111 (mask=0xfc00707f match=0xbc004057)
Cross-Chip Latency & Throughput (8 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes AX45MPV | — | 2 | — | RVV 1.0, VLEN=512 | rvv_bench_timings |
| SiFive P870 | — | 1.05 | — | RVV 1.0, VLEN=128 | rvv_bench_timings |
| SiFive X280 | — | 4.14 | — | RVV 1.0, VLEN=512 (Tenstorrent Blackhole) | rvv_bench_timings |
| SpacemiT X100 | — | 4 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| SpacemiT X60 | — | 4 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| Tenstorrent Ascalon-X | — | 0.5 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| XuanTie C908 | — | 4 | — | RVV 1.0, VLEN=128 (Kendryte K230) | rvv_bench_timings |
| XuanTie C920v2 | — | 2 | — | RVV 1.0, VLEN=128 | rvv_bench_timings |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 101111xxxxxxxxxxx100xxxxx1010111 | 0xfc00707f / 0xbc004057 |
Operands
| Name | Description |
|---|---|
vm | bits [25:25] |
vs2 | bits [24:20] |
xs1 | bits [19:15] |
vd | bits [11:7] |
Reference Notes
Performs narrowing signed clip operation on double-width elements from vector register vs2 using scalar clip value from register xs1 and stores results in vector register vd, using vector mask vm. The operation clips values to a specified range and packs the result into a narrower destination.