vabdl

Vector Absolute Difference Long

VABDL<c>.<dt> <Qd>, <Dn>, <Dm>

Computes absolute difference of narrow elements to wide result.

Pseudocode Operation

for i = 0 to (64 / esize - 1)
  diff ← abs(Dn[i] - Dm[i])
  Qd[i] ← diff_widened

Example

VABDL.dt q0, d1, d2

Encoding

Binary Layout
1111001
31:25
U
24
1
23
D
22
size
21:20
Vn
19:16
Vd
15:12
0111
11:8
N
7
0
6
M
5
0
4
Vm
3:0
 
Format NEON 3-Reg
Opcode 0xF2800700
Extension NEON (SIMD)

Operands

  • Qd
    Dest Wide
  • Dn
    First source 64-bit SIMD/FP register
  • Dm
    Second source 64-bit SIMD/FP register

Related

More in NEON (SIMD)

Reference

Instruction Forms

Encoding Instruction ISA Bit pattern
0xF2800700 VABDL{<c>}{<q>}.<dt> <Qd>, <Dn>, <Dm> A32 1111001 | U | 1 | D | size | Vn | Vd | 0111 | N | 0 | M | 0 | Vm
0xEF800700 VABDL{<c>}{<q>}.<dt> <Qd>, <Dn>, <Dm> T32 111 | U | 11111 | D | size | Vn | Vd | 0111 | N | 0 | M | 0 | Vm

Description

Vector Absolute Difference Long (integer) subtracts the elements of one vector from the corresponding elements of another vector, and places the absolute values of the results in the elements of the destination vector. Operand elements are all integers of the same length, and the result elements are double the length of the operands. Depending on settings in the CPACR, NSACR, and HCPTR registers, and the Security state and PE mode in which the instruction is executed, an attempt to execute the instruction might be undefined, or trapped to Hyp mode. For more information see Enabling Advanced SIMD and floating-point support.

Operation

if ConditionPassed() then
    EncodingSpecificOperations();  CheckAdvSIMDEnabled();
    for r = 0 to regs-1
        for e = 0 to elements-1
            op1 = Elem[Din[n+r],e,esize];
            op2 = Elem[Din[m+r],e,esize];
            absdiff = Abs(Int(op1,unsigned) - Int(op2,unsigned));
            if long_destination then
                Elem[Q[d>>1],e,2*esize] = absdiff<2*esize-1:0>;
            else
                Elem[D[d+r],e,esize] = absdiff<esize-1:0>;