ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

czero.nez

T1 riscv alu insn
Conditional zero, if condition is nonzero
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zicond, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZicond, Zkt-DIT

Summary

If xs2 contains a nonzero value, this instruction writes the value zero to xd. Otherwise, this instruction copies the contents of xs1 to xd. This instruction carries a syntactic dependency from both xs1 and xs2 to xd. Furthermore, if the Zkt extension is implemented, this instruction's timing is independent of the data values in xs1 and xs2.

Syntax / Encoding

czero.nez xd, xs1, xs2 | 0000111xxxxxxxxxx111xxxxx0110011 (mask=0xfe00707f match=0x0e007033)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0000111xxxxxxxxxx111xxxxx01100110xfe00707f / 0x0e007033

Operands

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

Reference Notes

If xs2 contains a nonzero value, this instruction writes the value zero to xd. Otherwise, this
instruction copies the contents of xs1 to xd.
This instruction carries a syntactic dependency from both xs1 and xs2 to xd. Furthermore, if the Zkt
extension is implemented, this instruction's timing is independent of the data values in xs1 and xs2.