SVE instruction index, 957 entries (part 1 of 2: A to M)
Part of the AArch64 reference index series.
Part 1 of 2. This half is A to M (489 entries); the N to Z half is part 2, N to Z.
Scalable Vector Extension. SVE's defining trick is that the vector length is not fixed by the architecture, it's implementation-defined, from 128 to 2048 bits in 128-bit steps, and code is supposed to be written so it doesn't care. That single decision explains most of the instruction set's odd shape.
The registers:
Z0-Z31, up to 2048 bits each, unknown-at-compile-time length.VLis the length in bits for the current vector length setting.P0-P7, predicate registers,VL/8bits, one bit per byte of aZregister. These are first-class, readable and writable,PTEST,CNTP,MOVto/from a GPR. Predicates as data is the mental shift SVE demands.FFR, the first-fault register, used by the first-faulting load/store forms.
The idiom you'll see over and over is a predicated loop with no scalar trip count:
whilelt p0.s, x0, x1 // p0 = (i < n), lane-wiseld1w z0.s, p0/z, [x2, x0, lsl #2]add z0.s, z0.s, #1st1w z0.s, p0, [x3, x0, lsl #2]incw x0b.any loop
WHILELT/WHILELE/WHILELO generate the predicate; B.ANY/B.NONE/B.FIRST branch on whether any lane is active. No scalar loop bound arithmetic, no tail handling. This is also why SVE code often looks strangely short compared to the NEON equivalent.
The /Z and /M suffixes on loads and arithmetic are the other thing to get right: /Z zeroes inactive lanes, /M merges (leaves them unchanged). Merge versus zero is a semantic difference, not a hint, and it changes what's in the register afterwards.
SVE2 adds the integer/DSP operations that NEON had and SVE didn't, SQRDMLAH, MATCH, HISTCNT, the widening multiplies. If a device reports SVE but not SVE2, roughly half the entries below won't exist.
Index, 489 entries (A to M)
A
| Name | Description |
|---|---|
ABS | Absolute value (predicated) |
ADCLB | Add with carry long (bottom) |
ADCLT | Add with carry long (top) |
ADD (immediate) | Add immediate (unpredicated) |
ADD (vectors, predicated) | Add (predicated) |
ADD (vectors, unpredicated) | Add (unpredicated) |
ADDHNB | Add narrow high part (bottom) |
ADDHNT | Add narrow high part (top) |
ADDP | Add pairwise |
ADDPL | Add multiple of predicate register size to scalar register |
ADDPT (predicated) | Add checked pointer vectors (predicated) |
ADDPT (unpredicated) | Add checked pointer vectors (unpredicated) |
ADDQP | Add pairwise within quadword vector segments (unpredicated) |
ADDQV | Add reduction of quadword vector segments |
ADDSUBP | Add subtract pairwise |
ADDVL | Add multiple of vector register size to scalar register |
ADR | Calculate vector address |
AESD (indexed) | Multi-vector AES single round decryption |
AESD (vectors) | AES single round decryption |
AESDIMC | Multi-vector AES single round decryption and inverse mix columns |
AESE (indexed) | Multi-vector AES single round encryption |
AESE (vectors) | AES single round encryption |
AESEMC | Multi-vector AES single round encryption and mix columns |
AESIMC | AES inverse mix columns |
AESMC | AES mix columns |
AND (immediate) | Bitwise AND with immediate (unpredicated) |
AND (predicates) | Bitwise AND predicates |
AND (vectors, predicated) | Bitwise AND (predicated) |
AND (vectors, unpredicated) | Bitwise AND (unpredicated) |
ANDQV | Bitwise AND reduction of quadword vector segments |
ANDS | Bitwise AND predicates, setting the condition flags |
ANDV | Bitwise AND reduction to scalar |
ASR (immediate, predicated) | Arithmetic shift right by immediate (predicated) |
ASR (immediate, unpredicated) | Arithmetic shift right by immediate (unpredicated) |
ASR (vectors) | Arithmetic shift right by vector (predicated) |
ASR (wide elements, predicated) | Arithmetic shift right by 64-bit wide elements (predicated) |
ASR (wide elements, unpredicated) | Arithmetic shift right by 64-bit wide elements (unpredicated) |
ASRD | Arithmetic shift right for divide by immediate (predicated) |
ASRR | Reversed arithmetic shift right by vector (predicated) |
B
| Name | Description |
|---|---|
BCAX | Bitwise clear and exclusive-OR |
BDEP | Scatter lower bits into positions selected by bitmask |
BEXT | Gather lower bits from positions selected by bitmask |
BF1CVT, BF2CVT | 8-bit floating-point convert to BFloat16 |
BF1CVTLT, BF2CVTLT | 8-bit floating-point convert to BFloat16 (top) |
BFADD (predicated) | BFloat16 add (predicated) |
BFADD (unpredicated) | BFloat16 add (unpredicated) |
BFCLAMP | BFloat16 clamp to minimum/maximum number |
BFCVT | Single-precision convert to BFloat16 (predicated) |
BFCVTN | BFloat16 convert to interleaved 8-bit floating-point |
BFCVTNT | Single-precision convert to BFloat16 (top, predicated) |
BFDOT (indexed) | BFloat16 dot product by indexed element to single-precision |
BFDOT (vectors) | BFloat16 dot product to single-precision |
BFMAX | BFloat16 maximum (predicated) |
BFMAXNM | BFloat16 maximum number (predicated) |
BFMIN | BFloat16 minimum (predicated) |
BFMINNM | BFloat16 minimum number (predicated) |
BFMLA (indexed) | BFloat16 fused multiply-add by indexed element |
BFMLA (vectors) | BFloat16 fused multiply-add |
BFMLALB (indexed) | BFloat16 multiply-add by indexed element to single-precision (bottom) |
BFMLALB (vectors) | BFloat16 multiply-add to single-precision (bottom) |
BFMLALT (indexed) | BFloat16 multiply-add by indexed element to single-precision (top) |
BFMLALT (vectors) | BFloat16 multiply-add to single-precision (top) |
BFMLS (indexed) | BFloat16 fused multiply-subtract by indexed element |
BFMLS (vectors) | BFloat16 fused multiply-subtract |
BFMLSLB (indexed) | BFloat16 multiply-subtract by indexed element from single-precision (bottom) |
BFMLSLB (vectors) | BFloat16 multiply-subtract from single-precision (bottom) |
BFMLSLT (indexed) | BFloat16 multiply-subtract by indexed element from single-precision (top) |
BFMLSLT (vectors) | BFloat16 multiply-subtract from single-precision (top) |
BFMMLA (non-widening) | BFloat16 matrix multiply-accumulate |
BFMMLA (widening) | BFloat16 matrix multiply-accumulate to single-precision |
BFMUL (indexed) | BFloat16 multiply by indexed element |
BFMUL (vectors, predicated) | BFloat16 multiply (predicated) |
BFMUL (vectors, unpredicated) | BFloat16 multiply (unpredicated) |
BFSCALE | BFloat16 adjust exponent (predicated) |
BFSUB (predicated) | BFloat16 subtract (predicated) |
BFSUB (unpredicated) | BFloat16 subtract (unpredicated) |
BGRP | Group bits to right or left as selected by bitmask |
BIC (immediate) | Bitwise clear bits using immediate (unpredicated): an alias of AND (immediate) |
BIC (predicates) | Bitwise clear predicates |
BIC (vectors, predicated) | Bitwise clear (predicated) |
BIC (vectors, unpredicated) | Bitwise clear (unpredicated) |
BICS | Bitwise clear predicates, setting the condition flags |
BRKA | Break after first true condition |
BRKAS | Break after first true condition, setting the condition flags |
BRKB | Break before first true condition |
BRKBS | Break before first true condition, setting the condition flags |
BRKN | Propagate break to next partition |
BRKNS | Propagate break to next partition, setting the condition flags |
BRKPA | Break after first true condition, propagating from previous partition |
BRKPAS | Break after first true condition, propagating from previous partition and setting the condition flags |
BRKPB | Break before first true condition, propagating from previous partition |
BRKPBS | Break before first true condition, propagating from previous partition and setting the condition flags |
BSL | Bitwise select |
BSL1N | Bitwise select with first input inverted |
BSL2N | Bitwise select with second input inverted |
C
| Name | Description |
|---|---|
CADD | Complex integer add |
CDOT (indexed) | Complex integer dot product by indexed element |
CDOT (vectors) | Complex integer dot product |
CLASTA (scalar) | Conditionally extract element after last to general-purpose register |
CLASTA (SIMD&FP scalar) | Conditionally extract element after last to SIMD&FP scalar register |
CLASTA (vectors) | Conditionally extract element after last to vector register |
CLASTB (scalar) | Conditionally extract last element to general-purpose register |
CLASTB (SIMD&FP scalar) | Conditionally extract last element to SIMD&FP scalar register |
CLASTB (vectors) | Conditionally extract last element to vector register |
CLS | Count leading sign bits (predicated) |
CLZ | Count leading zero bits (predicated) |
CMLA (indexed) | Complex integer multiply-add by indexed element |
CMLA (vectors) | Complex integer multiply-add |
CMP<cc> (immediate) | Compare vector to immediate |
CMP<cc> (vectors) | Compare vectors |
CMP<cc> (wide elements) | Compare vector to 64-bit wide elements |
CMPLE (vectors) | Compare signed less than or equal to vector, setting the condition flags: an alias of CMP (vectors) |
CMPLO (vectors) | Compare unsigned lower than vector, setting the condition flags: an alias of CMP (vectors) |
CMPLS (vectors) | Compare unsigned lower than or same as vector, setting the condition flags: an alias of CMP (vectors) |
CMPLT (vectors) | Compare signed less than vector, setting the condition flags: an alias of CMP (vectors) |
CNOT | Logically invert boolean condition (predicated) |
CNT | Count nonzero bits (predicated) |
CNTB, CNTD, CNTH, CNTW | Set scalar to multiple of predicate constraint element count |
CNTP (predicate as counter) | Set scalar to count from predicate-as-counter |
CNTP (predicate) | Set scalar to count of true predicate elements |
COMPACT | Copy Active vector elements to lower-numbered elements |
CPY (immediate, merging) | Copy signed integer immediate to vector elements (merging) |
CPY (immediate, zeroing) | Copy signed integer immediate to vector elements (zeroing) |
CPY (scalar) | Copy general-purpose register to vector elements (predicated) |
CPY (SIMD&FP scalar) | Copy SIMD&FP scalar register to vector elements (predicated) |
CTERMEQ, CTERMNE | Compare and terminate loop |
D
| Name | Description |
|---|---|
DECB, DECD, DECH, DECW (scalar) | Decrement scalar by multiple of predicate constraint element count |
DECD, DECH, DECW (vector) | Decrement vector by multiple of predicate constraint element count |
DECP (scalar) | Decrement scalar by count of true predicate elements |
DECP (vector) | Decrement vector by count of true predicate elements |
DUP (immediate) | Broadcast signed immediate to vector elements (unpredicated) |
DUP (indexed) | Broadcast indexed element to vector (unpredicated) |
DUP (scalar) | Broadcast general-purpose register to vector elements (unpredicated) |
DUPM | Broadcast logical bitmask immediate to vector (unpredicated) |
DUPQ | Broadcast indexed element within each quadword vector segment (unpredicated) |
E
| Name | Description |
|---|---|
EON | Bitwise exclusive-OR with inverted immediate (unpredicated): an alias of EOR (immediate) |
EOR (immediate) | Bitwise exclusive-OR with immediate (unpredicated) |
EOR (predicates) | Bitwise exclusive-OR predicates |
EOR (vectors, predicated) | Bitwise exclusive-OR (predicated) |
EOR (vectors, unpredicated) | Bitwise exclusive-OR (unpredicated) |
EOR3 | Bitwise exclusive-OR between three vectors |
EORBT | Interleaving exclusive-OR (bottom, top) |
EORQV | Bitwise exclusive-OR reduction of quadword vector segments |
EORS | Bitwise exclusive-OR predicates, setting the condition flags |
EORTB | Interleaving exclusive-OR (top, bottom) |
EORV | Bitwise exclusive-OR reduction to scalar |
EXPAND | Copy lower-numbered vector elements to Active elements |
EXT | Extract vector from pair of vectors |
EXTQ | Extract vector segment from each pair of quadword vector segments |
F
| Name | Description |
|---|---|
F1CVT, F2CVT | 8-bit floating-point convert to half-precision |
F1CVTLT, F2CVTLT | 8-bit floating-point convert to half-precision (top) |
FABD | Floating-point absolute difference (predicated) |
FABS | Floating-point absolute value (predicated) |
FAC<cc> | Floating-point absolute compare |
FACLE | Floating-point absolute compare less than or equal: an alias of FAC |
FACLT | Floating-point absolute compare less than: an alias of FAC |
FADD (immediate) | Floating-point add immediate (predicated) |
FADD (vectors, predicated) | Floating-point add (predicated) |
FADD (vectors, unpredicated) | Floating-point add (unpredicated) |
FADDA | Floating-point add strictly-ordered reduction, accumulating in scalar |
FADDP | Floating-point add pairwise |
FADDQV | Floating-point add recursive reduction of quadword vector segments |
FADDV | Floating-point add recursive reduction to scalar |
FAMAX | Floating-point absolute maximum (predicated) |
FAMIN | Floating-point absolute minimum (predicated) |
FCADD | Floating-point complex add (predicated) |
FCLAMP | Floating-point clamp to minimum/maximum number |
FCM<cc> (vectors) | Floating-point compare |
FCM<cc> (zero) | Floating-point compare with zero |
FCMLA (indexed) | Floating-point complex multiply-add by indexed element |
FCMLA (vectors) | Floating-point complex multiply-add (predicated) |
FCMLE (vectors) | Floating-point compare less than or equal to vector: an alias of FCM (vectors) |
FCMLT (vectors) | Floating-point compare less than vector: an alias of FCM (vectors) |
FCPY | Copy floating-point immediate to vector elements (predicated) |
FCVT | Floating-point convert (predicated) |
FCVTLT | Floating-point widening convert (top, predicated) |
FCVTN | Half-precision convert to interleaved 8-bit floating-point |
FCVTNB | Single-precision convert to interleaved 8-bit floating-point (bottom) |
FCVTNT (predicated) | Floating-point narrowing convert (top, predicated) |
FCVTNT (unpredicated) | Single-precision convert to interleaved 8-bit floating-point (top) |
FCVTX | Double-precision convert to single-precision, rounding to odd (predicated) |
FCVTXNT | Double-precision convert to single-precision, rounding to odd (top, predicated) |
FCVTZS | Floating-point convert to signed integer, rounding toward zero (predicated) |
FCVTZSN | Floating-point narrowing convert to interleaved signed integer, rounding toward zero |
FCVTZU | Floating-point convert to unsigned integer, rounding toward zero (predicated) |
FCVTZUN | Floating-point narrowing convert to interleaved unsigned integer, rounding toward zero |
FDIV | Floating-point divide (predicated) |
FDIVR | Floating-point reversed divide (predicated) |
FDOT (2-way, indexed, FP16 to FP32) | Half-precision dot product by indexed element to single-precision |
FDOT (2-way, indexed, FP8 to FP16) | 8-bit floating-point dot product by indexed element to half-precision |
FDOT (2-way, vectors, FP16 to FP32) | Half-precision dot product to single-precision |
FDOT (2-way, vectors, FP8 to FP16) | 8-bit floating-point dot product to half-precision |
FDOT (4-way, indexed) | 8-bit floating-point dot product by indexed element to single-precision |
FDOT (4-way, vectors) | 8-bit floating-point dot product to single-precision |
FDUP | Broadcast floating-point immediate to vector elements (unpredicated) |
FEXPA | Floating-point exponential accelerator |
FIRSTP | Scalar index of first true predicate element (predicated) |
FLOGB | Floating-point base 2 logarithm as integer |
FMAD | Floating-point fused multiply-add to multiplicand (predicated) |
FMAX (immediate) | Floating-point maximum with immediate (predicated) |
FMAX (vectors) | Floating-point maximum (predicated) |
FMAXNM (immediate) | Floating-point maximum number with immediate (predicated) |
FMAXNM (vectors) | Floating-point maximum number (predicated) |
FMAXNMP | Floating-point maximum number pairwise |
FMAXNMQV | Floating-point maximum number recursive reduction of quadword vector segments |
FMAXNMV | Floating-point maximum number recursive reduction to scalar |
FMAXP | Floating-point maximum pairwise |
FMAXQV | Floating-point maximum reduction of quadword vector segments |
FMAXV | Floating-point maximum recursive reduction to scalar |
FMIN (immediate) | Floating-point minimum with immediate (predicated) |
FMIN (vectors) | Floating-point minimum (predicated) |
FMINNM (immediate) | Floating-point minimum number with immediate (predicated) |
FMINNM (vectors) | Floating-point minimum number (predicated) |
FMINNMP | Floating-point minimum number pairwise |
FMINNMQV | Floating-point minimum number recursive reduction of quadword vector segments |
FMINNMV | Floating-point minimum number recursive reduction to scalar |
FMINP | Floating-point minimum pairwise |
FMINQV | Floating-point minimum recursive reduction of quadword vector segments |
FMINV | Floating-point minimum recursive reduction to scalar |
FMLA (indexed) | Floating-point fused multiply-add by indexed element |
FMLA (vectors) | Floating-point fused multiply-add (predicated) |
FMLALB (indexed, FP16 to FP32) | Half-precision multiply-add by indexed element to single-precision (bottom) |
FMLALB (indexed, FP8 to FP16) | 8-bit floating-point multiply-add by indexed element to half-precision (bottom) |
FMLALB (vectors, FP16 to FP32) | Half-precision multiply-add to single-precision (bottom) |
FMLALB (vectors, FP8 to FP16) | 8-bit floating-point multiply-add to half-precision (bottom) |
FMLALLBB (indexed) | 8-bit floating-point multiply-add by indexed element to single-precision (bottom bottom) |
FMLALLBB (vectors) | 8-bit floating-point multiply-add to single-precision (bottom bottom) |
FMLALLBT (indexed) | 8-bit floating-point multiply-add by indexed element to single-precision (bottom top) |
FMLALLBT (vectors) | 8-bit floating-point multiply-add to single-precision (bottom top) |
FMLALLTB (indexed) | 8-bit floating-point multiply-add by indexed element to single-precision (top bottom) |
FMLALLTB (vectors) | 8-bit floating-point multiply-add to single-precision (top bottom) |
FMLALLTT (indexed) | 8-bit floating-point multiply-add by indexed element to single-precision (top top) |
FMLALLTT (vectors) | 8-bit floating-point multiply-add to single-precision (top top) |
FMLALT (indexed, FP16 to FP32) | Half-precision multiply-add by indexed element to single-precision (top) |
FMLALT (indexed, FP8 to FP16) | 8-bit floating-point multiply-add by indexed element to half-precision (top) |
FMLALT (vectors, FP16 to FP32) | Half-precision multiply-add to single-precision (top) |
FMLALT (vectors, FP8 to FP16) | 8-bit floating-point multiply-add to half-precision (top) |
FMLS (indexed) | Floating-point fused multiply-subtract by indexed element |
FMLS (vectors) | Floating-point fused multiply-subtract (predicated) |
FMLSLB (indexed) | Half-precision multiply-subtract by indexed element from single-precision (bottom) |
FMLSLB (vectors) | Half-precision multiply-subtract from single-precision (bottom) |
FMLSLT (indexed) | Half-precision multiply-subtract by indexed element from single-precision (top) |
FMLSLT (vectors) | Half-precision multiply-subtract from single-precision (top) |
FMMLA (non-widening) | Floating-point matrix multiply-accumulate |
FMMLA (widening, FP16 to FP32) | Half-precision matrix multiply-accumulate to single-precision |
FMMLA (widening, FP8 to FP16) | 8-bit floating-point matrix multiply-accumulate to half-precision |
FMMLA (widening, FP8 to FP32) | 8-bit floating-point matrix multiply-accumulate to single-precision |
FMOV (immediate, predicated) | Move floating-point immediate to vector elements (predicated): an alias of FCPY |
FMOV (immediate, unpredicated) | Move floating-point immediate to vector elements (unpredicated): an alias of FDUP |
FMOV (zero, predicated) | Move floating-point +0.0 to vector elements (predicated): an alias of CPY (immediate, merging) |
FMOV (zero, unpredicated) | Move floating-point +0.0 to vector elements (unpredicated): an alias of DUP (immediate) |
FMSB | Floating-point fused multiply-subtract to multiplicand (predicated) |
FMUL (immediate) | Floating-point multiply by immediate (predicated) |
FMUL (indexed) | Floating-point multiply by indexed element |
FMUL (vectors, predicated) | Floating-point multiply (predicated) |
FMUL (vectors, unpredicated) | Floating-point multiply (unpredicated) |
FMULX | Floating-point multiply extended (predicated) |
FNEG | Floating-point negate (predicated) |
FNMAD | Floating-point negated fused multiply-add to multiplicand (predicated) |
FNMLA | Floating-point negated fused multiply-add (predicated) |
FNMLS | Floating-point negated fused multiply-subtract (predicated) |
FNMSB | Floating-point negated fused multiply-subtract to multiplicand (predicated) |
FRECPE | Floating-point reciprocal estimate (unpredicated) |
FRECPS | Floating-point reciprocal step (unpredicated) |
FRECPX | Floating-point reciprocal exponent (predicated) |
FRINT32X | Floating-point round to 32-bit integer (predicated) |
FRINT32Z | Floating-point round to 32-bit integer, rounding toward zero (predicated) |
FRINT64X | Floating-point round to 64-bit integer (predicated) |
FRINT64Z | Floating-point round to 64-bit integer, rounding toward zero (predicated) |
FRINT<r> | Floating-point round to integral value (predicated) |
FRSQRTE | Floating-point reciprocal square root estimate (unpredicated) |
FRSQRTS | Floating-point reciprocal square root step (unpredicated) |
FSCALE | Floating-point adjust exponent (predicated) |
FSQRT | Floating-point square root (predicated) |
FSUB (immediate) | Floating-point subtract immediate (predicated) |
FSUB (vectors, predicated) | Floating-point subtract (predicated) |
FSUB (vectors, unpredicated) | Floating-point subtract (unpredicated) |
FSUBR (immediate) | Floating-point reversed subtract from immediate (predicated) |
FSUBR (vectors) | Floating-point reversed subtract (predicated) |
FTMAD | Floating-point trigonometric multiply-add coefficient |
FTSMUL | Floating-point trigonometric starting value |
FTSSEL | Floating-point trigonometric select coefficient |
H
| Name | Description |
|---|---|
HISTCNT | Count matching elements in vector |
HISTSEG | Count matching elements in vector segments |
I
| Name | Description |
|---|---|
INCB, INCD, INCH, INCW (scalar) | Increment scalar by multiple of predicate constraint element count |
INCD, INCH, INCW (vector) | Increment vector by multiple of predicate constraint element count |
INCP (scalar) | Increment scalar by count of true predicate elements |
INCP (vector) | Increment vector by count of true predicate elements |
INDEX (immediate, scalar) | Create index starting from immediate and incremented by general-purpose register |
INDEX (immediates) | Create index starting from and incremented by immediate |
INDEX (scalar, immediate) | Create index starting from general-purpose register and incremented by immediate |
INDEX (scalars) | Create index starting from and incremented by general-purpose register |
INSR (scalar) | Insert general-purpose register in shifted vector |
INSR (SIMD&FP scalar) | Insert SIMD&FP scalar register in shifted vector |
L
| Name | Description |
|---|---|
LASTA (scalar) | Extract element after last to general-purpose register |
LASTA (SIMD&FP scalar) | Extract element after last to SIMD&FP scalar register |
LASTB (scalar) | Extract last element to general-purpose register |
LASTB (SIMD&FP scalar) | Extract last element to SIMD&FP scalar register |
LASTP | Scalar index of last true predicate element (predicated) |
LD1B (scalar plus immediate, consecutive registers) | Contiguous load of bytes to multiple consecutive vectors (immediate index) |
LD1B (scalar plus immediate, single register) | Contiguous load unsigned bytes to vector (immediate index) |
LD1B (scalar plus scalar, consecutive registers) | Contiguous load of bytes to multiple consecutive vectors (scalar index) |
LD1B (scalar plus scalar, single register) | Contiguous load unsigned bytes to vector (scalar index) |
LD1B (scalar plus vector) | Gather load unsigned bytes to vector (vector index) |
LD1B (vector plus immediate) | Gather load unsigned bytes to vector (immediate index) |
LD1D (scalar plus immediate, consecutive registers) | Contiguous load of doublewords to multiple consecutive vectors (immediate index) |
LD1D (scalar plus immediate, single register) | Contiguous load unsigned doublewords to vector (immediate index) |
LD1D (scalar plus scalar, consecutive registers) | Contiguous load of doublewords to multiple consecutive vectors (scalar index) |
LD1D (scalar plus scalar, single register) | Contiguous load unsigned doublewords to vector (scalar index) |
LD1D (scalar plus vector) | Gather load doublewords to vector (vector index) |
LD1D (vector plus immediate) | Gather load doublewords to vector (immediate index) |
LD1H (scalar plus immediate, consecutive registers) | Contiguous load of halfwords to multiple consecutive vectors (immediate index) |
LD1H (scalar plus immediate, single register) | Contiguous load unsigned halfwords to vector (immediate index) |
LD1H (scalar plus scalar, consecutive registers) | Contiguous load of halfwords to multiple consecutive vectors (scalar index) |
LD1H (scalar plus scalar, single register) | Contiguous load unsigned halfwords to vector (scalar index) |
LD1H (scalar plus vector) | Gather load unsigned halfwords to vector (vector index) |
LD1H (vector plus immediate) | Gather load unsigned halfwords to vector (immediate index) |
LD1Q | Gather load quadwords |
LD1RB | Load and broadcast unsigned byte to vector |
LD1RD | Load and broadcast doubleword to vector |
LD1RH | Load and broadcast unsigned halfword to vector |
LD1ROB (scalar plus immediate) | Contiguous load and replicate thirty-two bytes (immediate index) |
LD1ROB (scalar plus scalar) | Contiguous load and replicate thirty-two bytes (scalar index) |
LD1ROD (scalar plus immediate) | Contiguous load and replicate four doublewords (immediate index) |
LD1ROD (scalar plus scalar) | Contiguous load and replicate four doublewords (scalar index) |
LD1ROH (scalar plus immediate) | Contiguous load and replicate sixteen halfwords (immediate index) |
LD1ROH (scalar plus scalar) | Contiguous load and replicate sixteen halfwords (scalar index) |
LD1ROW (scalar plus immediate) | Contiguous load and replicate eight words (immediate index) |
LD1ROW (scalar plus scalar) | Contiguous load and replicate eight words (scalar index) |
LD1RQB (scalar plus immediate) | Contiguous load and replicate sixteen bytes (immediate index) |
LD1RQB (scalar plus scalar) | Contiguous load and replicate sixteen bytes (scalar index) |
LD1RQD (scalar plus immediate) | Contiguous load and replicate two doublewords (immediate index) |
LD1RQD (scalar plus scalar) | Contiguous load and replicate two doublewords (scalar index) |
LD1RQH (scalar plus immediate) | Contiguous load and replicate eight halfwords (immediate index) |
LD1RQH (scalar plus scalar) | Contiguous load and replicate eight halfwords (scalar index) |
LD1RQW (scalar plus immediate) | Contiguous load and replicate four words (immediate index) |
LD1RQW (scalar plus scalar) | Contiguous load and replicate four words (scalar index) |
LD1RSB | Load and broadcast signed byte to vector |
LD1RSH | Load and broadcast signed halfword to vector |
LD1RSW | Load and broadcast signed word to vector |
LD1RW | Load and broadcast unsigned word to vector |
LD1SB (scalar plus immediate) | Contiguous load signed bytes to vector (immediate index) |
LD1SB (scalar plus scalar) | Contiguous load signed bytes to vector (scalar index) |
LD1SB (scalar plus vector) | Gather load signed bytes to vector (vector index) |
LD1SB (vector plus immediate) | Gather load signed bytes to vector (immediate index) |
LD1SH (scalar plus immediate) | Contiguous load signed halfwords to vector (immediate index) |
LD1SH (scalar plus scalar) | Contiguous load signed halfwords to vector (scalar index) |
LD1SH (scalar plus vector) | Gather load signed halfwords to vector (vector index) |
LD1SH (vector plus immediate) | Gather load signed halfwords to vector (immediate index) |
LD1SW (scalar plus immediate) | Contiguous load signed words to vector (immediate index) |
LD1SW (scalar plus scalar) | Contiguous load signed words to vector (scalar index) |
LD1SW (scalar plus vector) | Gather load signed words to vector (vector index) |
LD1SW (vector plus immediate) | Gather load signed words to vector (immediate index) |
LD1W (scalar plus immediate, consecutive registers) | Contiguous load of words to multiple consecutive vectors (immediate index) |
LD1W (scalar plus immediate, single register) | Contiguous load unsigned words to vector (immediate index) |
LD1W (scalar plus scalar, consecutive registers) | Contiguous load of words to multiple consecutive vectors (scalar index) |
LD1W (scalar plus scalar, single register) | Contiguous load unsigned words to vector (scalar index) |
LD1W (scalar plus vector) | Gather load unsigned words to vector (vector index) |
LD1W (vector plus immediate) | Gather load unsigned words to vector (immediate index) |
LD2B (scalar plus immediate) | Contiguous load two-byte structures to two vectors (immediate index) |
LD2B (scalar plus scalar) | Contiguous load two-byte structures to two vectors (scalar index) |
LD2D (scalar plus immediate) | Contiguous load two-doubleword structures to two vectors (immediate index) |
LD2D (scalar plus scalar) | Contiguous load two-doubleword structures to two vectors (scalar index) |
LD2H (scalar plus immediate) | Contiguous load two-halfword structures to two vectors (immediate index) |
LD2H (scalar plus scalar) | Contiguous load two-halfword structures to two vectors (scalar index) |
LD2Q (scalar plus immediate) | Contiguous load two-quadword structures to two vectors (immediate index) |
LD2Q (scalar plus scalar) | Contiguous load two-quadword structures to two vectors (scalar index) |
LD2W (scalar plus immediate) | Contiguous load two-word structures to two vectors (immediate index) |
LD2W (scalar plus scalar) | Contiguous load two-word structures to two vectors (scalar index) |
LD3B (scalar plus immediate) | Contiguous load three-byte structures to three vectors (immediate index) |
LD3B (scalar plus scalar) | Contiguous load three-byte structures to three vectors (scalar index) |
LD3D (scalar plus immediate) | Contiguous load three-doubleword structures to three vectors (immediate index) |
LD3D (scalar plus scalar) | Contiguous load three-doubleword structures to three vectors (scalar index) |
LD3H (scalar plus immediate) | Contiguous load three-halfword structures to three vectors (immediate index) |
LD3H (scalar plus scalar) | Contiguous load three-halfword structures to three vectors (scalar index) |
LD3Q (scalar plus immediate) | Contiguous load three-quadword structures to three vectors (immediate index) |
LD3Q (scalar plus scalar) | Contiguous load three-quadword structures to three vectors (scalar index) |
LD3W (scalar plus immediate) | Contiguous load three-word structures to three vectors (immediate index) |
LD3W (scalar plus scalar) | Contiguous load three-word structures to three vectors (scalar index) |
LD4B (scalar plus immediate) | Contiguous load four-byte structures to four vectors (immediate index) |
LD4B (scalar plus scalar) | Contiguous load four-byte structures to four vectors (scalar index) |
LD4D (scalar plus immediate) | Contiguous load four-doubleword structures to four vectors (immediate index) |
LD4D (scalar plus scalar) | Contiguous load four-doubleword structures to four vectors (scalar index) |
LD4H (scalar plus immediate) | Contiguous load four-halfword structures to four vectors (immediate index) |
LD4H (scalar plus scalar) | Contiguous load four-halfword structures to four vectors (scalar index) |
LD4Q (scalar plus immediate) | Contiguous load four-quadword structures to four vectors (immediate index) |
LD4Q (scalar plus scalar) | Contiguous load four-quadword structures to four vectors (scalar index) |
LD4W (scalar plus immediate) | Contiguous load four-word structures to four vectors (immediate index) |
LD4W (scalar plus scalar) | Contiguous load four-word structures to four vectors (scalar index) |
LDAPRO | Load-Acquire RCpc octaword |
LDFF1B (scalar plus scalar) | Contiguous load first-fault unsigned bytes to vector (scalar index) |
LDFF1B (scalar plus vector) | Gather load first-fault unsigned bytes to vector (vector index) |
LDFF1B (vector plus immediate) | Gather load first-fault unsigned bytes to vector (immediate index) |
LDFF1D (scalar plus scalar) | Contiguous load first-fault doublewords to vector (scalar index) |
LDFF1D (scalar plus vector) | Gather load first-fault doublewords to vector (vector index) |
LDFF1D (vector plus immediate) | Gather load first-fault doublewords to vector (immediate index) |
LDFF1H (scalar plus scalar) | Contiguous load first-fault unsigned halfwords to vector (scalar index) |
LDFF1H (scalar plus vector) | Gather load first-fault unsigned halfwords to vector (vector index) |
LDFF1H (vector plus immediate) | Gather load first-fault unsigned halfwords to vector (immediate index) |
LDFF1SB (scalar plus scalar) | Contiguous load first-fault signed bytes to vector (scalar index) |
LDFF1SB (scalar plus vector) | Gather load first-fault signed bytes to vector (vector index) |
LDFF1SB (vector plus immediate) | Gather load first-fault signed bytes to vector (immediate index) |
LDFF1SH (scalar plus scalar) | Contiguous load first-fault signed halfwords to vector (scalar index) |
LDFF1SH (scalar plus vector) | Gather load first-fault signed halfwords to vector (vector index) |
LDFF1SH (vector plus immediate) | Gather load first-fault signed halfwords to vector (immediate index) |
LDFF1SW (scalar plus scalar) | Contiguous load first-fault signed words to vector (scalar index) |
LDFF1SW (scalar plus vector) | Gather load first-fault signed words to vector (vector index) |
LDFF1SW (vector plus immediate) | Gather load first-fault signed words to vector (immediate index) |
LDFF1W (scalar plus scalar) | Contiguous load first-fault unsigned words to vector (scalar index) |
LDFF1W (scalar plus vector) | Gather load first-fault unsigned words to vector (vector index) |
LDFF1W (vector plus immediate) | Gather load first-fault unsigned words to vector (immediate index) |
LDNF1B | Contiguous load non-fault unsigned bytes to vector (immediate index) |
LDNF1D | Contiguous load non-fault doublewords to vector (immediate index) |
LDNF1H | Contiguous load non-fault unsigned halfwords to vector (immediate index) |
LDNF1SB | Contiguous load non-fault signed bytes to vector (immediate index) |
LDNF1SH | Contiguous load non-fault signed halfwords to vector (immediate index) |
LDNF1SW | Contiguous load non-fault signed words to vector (immediate index) |
LDNF1W | Contiguous load non-fault unsigned words to vector (immediate index) |
LDNT1B (scalar plus immediate, consecutive registers) | Contiguous load non-temporal of bytes to multiple consecutive vectors (immediate index) |
LDNT1B (scalar plus immediate, single register) | Contiguous load non-temporal bytes to vector (immediate index) |
LDNT1B (scalar plus scalar, consecutive registers) | Contiguous load non-temporal of bytes to multiple consecutive vectors (scalar index) |
LDNT1B (scalar plus scalar, single register) | Contiguous load non-temporal bytes to vector (scalar index) |
LDNT1B (vector plus scalar) | Gather load non-temporal unsigned bytes |
LDNT1D (scalar plus immediate, consecutive registers) | Contiguous load non-temporal of doublewords to multiple consecutive vectors (immediate index) |
LDNT1D (scalar plus immediate, single register) | Contiguous load non-temporal doublewords to vector (immediate index) |
LDNT1D (scalar plus scalar, consecutive registers) | Contiguous load non-temporal of doublewords to multiple consecutive vectors (scalar index) |
LDNT1D (scalar plus scalar, single register) | Contiguous load non-temporal doublewords to vector (scalar index) |
LDNT1D (vector plus scalar) | Gather load non-temporal unsigned doublewords |
LDNT1H (scalar plus immediate, consecutive registers) | Contiguous load non-temporal of halfwords to multiple consecutive vectors (immediate index) |
LDNT1H (scalar plus immediate, single register) | Contiguous load non-temporal halfwords to vector (immediate index) |
LDNT1H (scalar plus scalar, consecutive registers) | Contiguous load non-temporal of halfwords to multiple consecutive vectors (scalar index) |
LDNT1H (scalar plus scalar, single register) | Contiguous load non-temporal halfwords to vector (scalar index) |
LDNT1H (vector plus scalar) | Gather load non-temporal unsigned halfwords |
LDNT1SB | Gather load non-temporal signed bytes |
LDNT1SH | Gather load non-temporal signed halfwords |
LDNT1SW | Gather load non-temporal signed words |
LDNT1W (scalar plus immediate, consecutive registers) | Contiguous load non-temporal of words to multiple consecutive vectors (immediate index) |
LDNT1W (scalar plus immediate, single register) | Contiguous load non-temporal words to vector (immediate index) |
LDNT1W (scalar plus scalar, consecutive registers) | Contiguous load non-temporal of words to multiple consecutive vectors (scalar index) |
LDNT1W (scalar plus scalar, single register) | Contiguous load non-temporal words to vector (scalar index) |
LDNT1W (vector plus scalar) | Gather load non-temporal unsigned words |
LDR (predicate) | Load predicate register |
LDR (vector) | Load vector register |
LSL (immediate, predicated) | Logical shift left by immediate (predicated) |
LSL (immediate, unpredicated) | Logical shift left by immediate (unpredicated) |
LSL (vectors) | Logical shift left by vector (predicated) |
LSL (wide elements, predicated) | Logical shift left by 64-bit wide elements (predicated) |
LSL (wide elements, unpredicated) | Logical shift left by 64-bit wide elements (unpredicated) |
LSLR | Reversed logical shift left by vector (predicated) |
LSR (immediate, predicated) | Logical shift right by immediate (predicated) |
LSR (immediate, unpredicated) | Logical shift right by immediate (unpredicated) |
LSR (vectors) | Logical shift right by vector (predicated) |
LSR (wide elements, predicated) | Logical shift right by 64-bit wide elements (predicated) |
LSR (wide elements, unpredicated) | Logical shift right by 64-bit wide elements (unpredicated) |
LSRR | Reversed logical shift right by vector (predicated) |
LUTI2 (8-bit and 16-bit) | Lookup table read with 2-bit indices (8-bit and 16-bit) |
LUTI4 (8-bit and 16-bit) | Lookup table read with 4-bit indices (8-bit and 16-bit) |
LUTI6 (16-bit) | Lookup table read with 6-bit indices (16-bit) |
LUTI6 (8-bit) | Lookup table read with 6-bit indices (8-bit) |
M
| Name | Description |
|---|---|
MAD | Multiply-add to multiplicand (predicated) |
MADPT | Multiply-add checked pointer vectors to multiplicand |
MATCH | Detect any matching elements within quadwords, setting the condition flags |
MLA (indexed) | Multiply-add by indexed element |
MLA (vectors) | Multiply-add (predicated) |
MLAPT | Multiply-add checked pointer vectors |
MLS (indexed) | Multiply-subtract by indexed element |
MLS (vectors) | Multiply-subtract (predicated) |
MOV | Move logical bitmask immediate to vector (unpredicated): an alias of DUPM |
MOV | Move predicate (unpredicated): an alias of ORR (predicates) |
MOV (immediate, merging) | Move signed integer immediate to vector elements (merging): an alias of CPY (immediate, merging) |
MOV (immediate, unpredicated) | Move signed immediate to vector elements (unpredicated): an alias of DUP (immediate) |
MOV (immediate, zeroing) | Move signed integer immediate to vector elements (zeroing): an alias of CPY (immediate, zeroing) |
MOV (predicate, merging) | Move predicates (merging): an alias of SEL (predicates) |
MOV (predicate, zeroing) | Move predicates (zeroing): an alias of AND (predicates) |
MOV (scalar, predicated) | Move general-purpose register to vector elements (predicated): an alias of CPY (scalar) |
MOV (scalar, unpredicated) | Move general-purpose register to vector elements (unpredicated): an alias of DUP (scalar) |
MOV (SIMD&FP scalar, predicated) | Move SIMD&FP scalar register to vector elements (predicated): an alias of CPY (SIMD&FP scalar) |
MOV (SIMD&FP scalar, unpredicated) | Move indexed element or SIMD&FP scalar to vector (unpredicated): an alias of DUP (indexed) |
MOV (vector, predicated) | Move vector elements (predicated): an alias of SEL (vectors) |
MOV (vector, unpredicated) | Move vector register (unpredicated): an alias of ORR (vectors, unpredicated) |
MOVPRFX (predicated) | Move prefix (predicated) |
MOVPRFX (unpredicated) | Move prefix (unpredicated) |
MOVS (predicated) | Move predicates (zeroing), setting the condition flags: an alias of ANDS |
MOVS (unpredicated) | Move predicate (unpredicated), setting the condition flags: an alias of ORRS |
MSB | Multiply-subtract to multiplicand |
MUL (immediate) | Multiply by immediate (unpredicated) |
MUL (indexed) | Multiply by indexed element |
MUL (vectors, predicated) | Multiply (predicated) |
MUL (vectors, unpredicated) | Multiply (unpredicated) |
Practical notes
- Vector length is runtime. Don't hardcode 4 or 16 in your analysis; read
ZCR_EL1.LENor useRDVLfor the byte count. /Zvs/Mchanges behaviour on inactive lanes; when reconstructing an algorithm, track which form was used.- Gather/scatter (
LD1W {z0.s}, p0/z, [x0, z1.s, uxtw #2]) is how SVE handles non-contiguous access, with a vector of offsets in a secondZregister. - Feature detection is
ID_AA64PFR0_EL1.SVEandID_AA64ZFR0_EL1for the SVE2/extended subsets.
Continued in part 2, N to Z.