ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

amoxor.w

T1 riscv atomic insn
Atomic fetch-and-xor word
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zaamo
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZaamo

Summary

Atomically:

Syntax / Encoding

amoxor.w xd, xs2, (xs1) | 0010000xxxxxxxxxx010xxxxx0101111 (mask=0xfe00707f match=0x2000202f)

Cross-Chip Latency & Throughput (11 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
SiFive 7-Series (U74)311PipeAllvm_sched_models
SiFive P670 / P60030.51SiFiveP600LDSTllvm_sched_models
MIPS P8700 (RISC-V)411p8700IssueLSUllvm_sched_models
Tenstorrent Ascalon-X411AscalonLSllvm_sched_models
XiangShan KunMingHu40.331XSPipeLDUllvm_sched_models
XiangShan NanHu50.51XS2LDllvm_sched_models
SiFive P870 / P80070.51SiFiveP800LDSTllvm_sched_models
SpacemiT X10070.251SMTX100_LSQllvm_sched_models
Andes 45-Series911Andes45LSUllvm_sched_models
SpacemiT X60 (K1)120.51SMX60_LSllvm_sched_models
Syntacore SCR72111LSUllvm_sched_models

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0010000xxxxxxxxxx010xxxxx01011110xfe00707f / 0x2000202f

Operands

NameDescription
xs2bits [24:20]
xs1bits [19:15]
xdbits [11:7]

Reference Notes

Atomically:

  * Load the word at address _xs1_
  * Write the sign-extended value into _xd_
  * XOR the least-significant word of register _xs2_ to the loaded value
  * Write the result to the address in _xs1_