sub

Vector Subtract (Integer)

SUB <Vd>.<T>, <Vn>.<T>, <Vm>.<T>

Subtracts elements of Vm from Vn.

Details

The Vector Subtract instruction subtracts elements of Vm from Vn.

Pseudocode Operation

Vd ← Vn - Vm
// Flags affected: N, Z, C, V

Example

SUB v0.4s.T, v1.4s.T, v2.4s.T

Encoding

Binary Layout
0
Q
101110
size
10000
Rm
1000
Rn
Rd
 
Format SIMD Three Register
Opcode 0x2E208400
Extension NEON (SIMD)

Operands

  • Vd
    Destination SIMD/FP vector register
  • Vn
    First source SIMD/FP vector register
  • Vm
    Second source SIMD/FP vector register