vhsub

Vector Halving Subtract

VHSUB<c>.<dt> <Qd>, <Qn>, <Qm>

Subtract elements and shift right by 1.

Details

The Vector Halving Subtract instruction subtract elements and shift right by 1.

Pseudocode Operation

Qd ← Qn - Qm
// Flags affected: N, Z, C, V

Example

VHSUB.dt q0, q1, q2

Encoding

Binary Layout
11110010
0
sz
0
Vn
Vd
0010
N
Q
M
0
Vm
 
Format NEON 3-Reg
Opcode 0xF2000200
Extension NEON (SIMD)

Operands

  • Qd
    Destination 128-bit SIMD register
  • Qn
    First source 128-bit SIMD register
  • Qm
    Second source 128-bit SIMD register