cset

Conditional Set

CSET <Wd>, <cond>

Sets register to 1 if condition true, else 0. (Alias for CSINC)

Details

The Conditional Set instruction sets register to 1 if condition true, else 0. (Alias for CSINC).

Pseudocode Operation

// Sets register to 1 if condition true, else 0. (Alias for CSINC)

Example

CSET w0, cond

Encoding

Binary Layout
00011010
100
11111
cond
0
1
11111
Rd
 
Format Cond Select
Opcode 0x1A9F07E0
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • cond
    Condition