csneg

Conditional Select Negate

CSNEG <Wd>, <Wn>, <Wm>, <cond>

Selects Wn if cond true, else -Wm.

Details

The Conditional Select Negate instruction selects Wn if cond true, else -Wm.

Pseudocode Operation

// Selects Wn if cond true, else -Wm

Example

CSNEG w0, w1, w2, cond

Encoding

Binary Layout
01001010
100
Rm
cond
0
1
Rn
Rd
 
Format Cond Select
Opcode 0x4A800400
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • Wn
    True Src
  • Wm
    False Src
  • cond
    Cond