add
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userI, Zkt-DITSummary
Add the value in xs1 to xs2, and store the result in xd. Any overflow is thrown away.
Syntax / Encoding
add xd, xs1, xs2 | 0000000xxxxxxxxxx000xxxxx0110011 (mask=0xfe00707f match=0x00000033)
Cross-Chip Latency & Throughput (20 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes AX45MPV | — | 0.64 | — | RVV 1.0, VLEN=512 | rvv_bench_timings |
| SiFive X280 | — | 0.78 | — | RVV 1.0, VLEN=512 (Tenstorrent Blackhole) | rvv_bench_timings |
| SpacemiT X100 | — | 0.47 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| SpacemiT X60 | — | 0.62 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| Tenstorrent Ascalon-X | — | 0.36 | — | RVV 1.0, VLEN=256 | rvv_bench_timings |
| XuanTie C906 | — | 1 | — | RVV 0.7.1, VLEN=128 (Allwinner D1) | rvv_bench_timings |
| XuanTie C908 | — | 0.6 | — | RVV 1.0, VLEN=128 (Kendryte K230) | rvv_bench_timings |
| XuanTie C910 | — | 0.5 | — | RVV 0.7.1, VLEN=128 (TH1520) | rvv_bench_timings |
| XuanTie C920 (SG2042) | — | 0.5 | — | RVV 0.7.1, VLEN=128 (Milk-V Pioneer) | rvv_bench_timings |
| XuanTie C920v2 | — | 0.62 | — | RVV 1.0, VLEN=128 | rvv_bench_timings |
| Andes 45-Series | 1 | 0.5 | 1 | Andes45ALU | llvm_sched_models |
| MIPS P8700 (RISC-V) | 1 | 0.5 | 1 | p8700WriteEitherALU | llvm_sched_models |
| SiFive P670 / P600 | 1 | 0.25 | 1 | SiFiveP600IntArith | llvm_sched_models |
| SiFive P870 / P800 | 1 | 0.25 | 1 | SiFiveP800IntArith | llvm_sched_models |
| SpacemiT X100 | 1 | 0.25 | 1 | SMTX100_IQ | llvm_sched_models |
| SpacemiT X60 (K1) | 1 | 0.5 | 1 | SMX60_IEU | llvm_sched_models |
| Syntacore SCR7 | 1 | 1 | 1 | ALU | llvm_sched_models |
| Tenstorrent Ascalon-X | 1 | 1 | 1 | AscalonFX | llvm_sched_models |
| XiangShan KunMingHu | 1 | 0.25 | 1 | XSPipeGroupALU | llvm_sched_models |
| XiangShan NanHu | 1 | 0.25 | 1 | XS2ALU | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 0000000xxxxxxxxxx000xxxxx0110011 | 0xfe00707f / 0x00000033 |
Operands
| Name | Description |
|---|---|
xs2 | bits [24:20] |
xs1 | bits [19:15] |
xd | bits [11:7] |