vaddl
Vector Add Long
VADDL<c>.<dt> <Qd>, <Dn>, <Dm>
Adds N-bit elements, producing 2N-bit results.
Pseudocode Operation
for i = 0 to pairs-1
Qd[i] ← Dn[i] + Dm[i]
Example
VADDL.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
000
11:9
0
8
N
7
0
6
M
5
0
4
Vm
3:0
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
View in Arm A64 ISA Reference ↗
Arm AArch32 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0xF2800000 | VADDL{<c>}{<q>}.<dt> <Qd>, <Dn>, <Dm> | A32 | 1111001 | U | 1 | D | size | Vn | Vd | 000 | 0 | N | 0 | M | 0 | Vm | ||
| 0xEF800000 | VADDL{<c>}{<q>}.<dt> <Qd>, <Dn>, <Dm> | T32 | 111 | U | 11111 | D | size | Vn | Vd | 000 | 0 | N | 0 | M | 0 | Vm |
Description
Vector Add Long adds corresponding elements in two doubleword vectors, and places the results in a quadword vector. Before adding, it sign-extends or zero-extends the elements of both 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 e = 0 to elements-1
integer op1;
if is_vaddw then
op1 = Int(Elem[Qin[n>>1],e,2*esize], unsigned);
else
op1 = Int(Elem[Din[n],e,esize], unsigned);
result = op1 + Int(Elem[Din[m],e,esize],unsigned);
Elem[Q[d>>1],e,2*esize] = result<2*esize-1:0>;