Skip to content

CSEL

32-bit Base **Group:** Compound Operation  |  Ch 12   ALU — Arithmetic Logic Unit  |  **Length:** 32  |  **Decode:**

Assembly Syntax

  • csel SrcP, SrcL, SrcR<.neg>, ->{t, u, Rd}

Encoding

CSEL encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

Conditional select. Dest = (SrcP != 0) ? SrcL : SrcR.

Pseudocode (informative)

rd = (rs_p != 0) ? rs1 : rs2;

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
csel SrcP, SrcL, SrcR<.neg>, ->{t, u, Rd} 32
← [Compound Operation](../groups/compound_operation.md)    [Index](../index.md)    [All instructions](index.md) →