Zicond Extension

Versions

1.0.0
State

ratified

Ratification date

== Synopsis

The "Conditional" operations extension provides a simple solution that provides most of the benefit and all of the flexibility one would desire to support conditional arithmetic and conditional-select/move operations, while remaining true to the RISC-V design philosophy. The instructions follow the format for R-type instructions with 3 operands (i.e., 2 source operands and 1 destination operand).

Using these instructions, branchless sequences can be implemented (typically in two-instruction sequences) without the need for instruction fusion, special provisions during the decoding of architectural instructions, or other microarchitectural provisions.

Instructions

The following instructions are defined by this extension:

czero.eqz

Conditional zero, if condition is equal to zero.

czero.nez

Conditional zero, if condition is nonzero.