Page 344 - ARM 64 Bit Assembly Language
P. 344

334 Chapter 10

                   Name                     Effect                       Description
                   dup Vd.Td1,Wn            Vd[] ← bits(Wn)              Copy bitSize(Td1) least
                                                                         significant bits of Wn to all
                                                                         elements of Vd.
                   dup Vd.Td2,Vn.Ts[x]      Vd[] ← Vn[x]                 Copy element x of Vn to all
                                                                         elements of Vd.
                   dup Fd,Vn.Td3[x]         Fd[] ← Vn[x]                 Copy element x of Vn to all
                                                                         elements of Fd.


                  10.3.1.3 Examples

                1     dup    v0.8b,w1     // copy 8 bits from w1 to
                2                         // 8 8-bit elements of v0
                3     dup    v3.8h,V2.h[1] // copy second 16 bit half word
                4                         // from v2 to 8 16-bit elements of v3



                  10.3.2 Move vector element


                  These instructions copy one element into a vector:

                  mov       Copy element into vector,
                  umov      Copy unsigned integer element from vector to AARCH64 register, and
                  smov      Copy signed integer element from vector to AARCH64 register.


                  10.3.2.1 Syntax


                       mov Vd.T[index], Wn
                       mov Vd.2d[index], Xn
                       mov Vd.T2[index], Vn.T2[index2]
                       smov Wd, Vn.T3[index]
                       umov Wd, Vn.Ts[index]
                       smov Xd, Vn.T4[index]
                       umov Xd, Vn.d[index]



                  •  T may be 8b, 16b, 4h, 8h, 2s,or 4s.
                  •  The lowest n bits of Wn will be used, where n is the number of bits specified by T.
                  •  The type T2 may be b, h, s,or d.
   339   340   341   342   343   344   345   346   347   348   349