DUPQ

Broadcast indexed element within each quadword vector segment (unpredicated)

Unconditionally broadcast the indexed element within each 128-bit source vector segment to all elements of the corresponding destination vector segment. This instruction is unpredicated.

The immediate element index is in the range of 0 to 15 (bytes), 7 (halfwords), 3 (words) or 1 (doublewords).

SVE2
(FEAT_SVE2p1)

313029282726252423222120191817161514131211109876543210
00000101001i1tsz001001ZnZd

DUPQ <Zd>.<T>, <Zn>.<T>[<imm>]

if !IsFeatureImplemented(FEAT_SVE2p1) && !IsFeatureImplemented(FEAT_SME2p1) then UNDEFINED; if tsz == '0000' then UNDEFINED; constant integer lsb = LowestSetBit(tsz); constant integer esize = 8 << lsb; constant bits(5) imm = i1:tsz; constant integer index = UInt(imm<4:(lsb+1)>); constant integer n = UInt(Zn); constant integer d = UInt(Zd);

Assembler Symbols

<Zd>

Is the name of the destination scalable vector register, encoded in the "Zd" field.

<T>

Is the size specifier, encoded in tsz:

tsz <T>
0000 RESERVED
xxx1 B
xx10 H
x100 S
1000 D
<Zn>

Is the name of the source scalable vector register, encoded in the "Zn" field.

<imm>

Is the immediate index, in the range 0 to one less than the number of elements in 128 bits, encoded in "i1:tsz".

Operation

CheckSVEEnabled(); constant integer VL = CurrentVL; constant integer PL = VL DIV 8; constant integer segments = VL DIV 128; constant integer elements = 128 DIV esize; constant bits(VL) operand = Z[n, VL]; bits(VL) result; bits(esize) element; for s = 0 to segments-1 element = Elem[operand, s * elements + index, esize]; Elem[result, s, 128] = Replicate(element, 128 DIV esize); Z[d, VL] = result;

Operational information

If PSTATE.DIT is 1:


Internal version only: aarchmrs v2024-03_relA, pseudocode v2024-03_rel, sve v2024-03_rel ; Build timestamp: 2024-03-26T09:45

Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.