aarch64-pg
06 · reference

Reference

A searchable map of the supported instructions and the calling convention.

mov

Copy register or wide immediate into Rd.

run example

Data processing

mov xd, xn / mov xd, #imm / mov xd, sp / mov vd.T, vn.T

c equivalent

Rd = Rm; // or Rd = imm;

flags

NZCVdoes not set flags
mov     x9, 42                  // x9 = 42mov     x10, x9                 // copy: x10 = 42 toomovi    v1.16b, #12mov     v3.16b, v1.16b          // every lane = 12
  • the immediate form only takes a value that fits one shifted 16-bit field; a wider constant needs a move-wide then keep sequence.
#mov