qdsub

Saturating Double and Subtract

QDSUB<c> <Rd>, <Rm>, <Rn>

Doubles the second operand, subtracts from first, and saturates.

Details

The Saturating Double and Subtract instruction doubles the second operand, subtracts from first, and saturates.

Pseudocode Operation

Rd ← Rm - Rn
// Flags affected: N, Z, C, V

Example

QDSUB r0, r2, r1

Encoding

Binary Layout
cond
00010110
Rn
Rd
00000101
Rm
 
Format Data Proc
Opcode 0x01600050
Extension A32 (Sat)

Operands

  • Rd
    Destination general-purpose register
  • Rm
    Second source / offset general-purpose register
  • Rn
    First source / base general-purpose register