SMLAL
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userSME, SME2Summary
AArch64 SMLAL instruction (SME, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: SME2.
Syntax / Encoding
SMLAL_VG4_M4Z4Z_HtoS: smlal $ZAda[$Rv, $imm, vgx4], $Zn, $Zm SMLAL_VG2_M2Z2Z_HtoS: smlal $ZAda[$Rv, $imm, vgx2], $Zn, $Zm SMLAL_MZZ_HtoS: smlal $ZAda[$Rv, $imm], $Zn, $Zm SMLAL_VG4_M4ZZI_HtoS: smlal $ZAda[$Rv, $imm, vgx4], $Zn, $Zm$i3 SMLAL_VG2_M2ZZI_S: smlal $ZAda[$Rv, $imm, vgx2], $Zn, $Zm$i3 SMLAL_MZZI_HtoS: smlal $ZAda[$Rv, $imm], $Zn, $Zm$i3
Cross-Chip Latency & Throughput (3 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Apple M1 Firestorm (P-core) | 3 | 0.25 | 1 | - - 1 u11-14 | apple_dougallj |
| Apple M1 Icestorm (E-core) | 3 | 0.5 | 1 | - - 1 u6-7 | apple_dougallj |
| Apple Cyclone (A7) | 4 | 0.5 | 1 | CyUnitVM | llvm_sched_models |
Binary Encodings (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | SMLAL_VG4_M4Z4Z_HtoS | 11000001111xxx010xx010xxx00000xx | 0xffe39c7c / 0xc1e10800 |
| 32 | SMLAL_VG2_M2Z2Z_HtoS | 11000001111xxxx00xx010xxxx0000xx | 0xffe19c3c / 0xc1e00800 |
| 32 | SMLAL_VG2_M2ZZ_HtoS | 110000010110xxxx0xx010xxxxx000xx | 0xfff09c1c / 0xc1600800 |
| 32 | SMLAL_VG4_M4ZZ_HtoS | 110000010111xxxx0xx010xxxxx000xx | 0xfff09c1c / 0xc1700800 |
| 32 | SMLAL_MZZ_HtoS | 110000010110xxxx0xx011xxxxx00xxx | 0xfff09c18 / 0xc1600c00 |
| 32 | SMLAL_VG4_M4ZZI_HtoS | 110000011101xxxx1xx1xxxxx0000xxx | 0xfff09078 / 0xc1d09000 |
| 32 | SMLAL_VG2_M2ZZI_S | 110000011101xxxx0xx1xxxxxx000xxx | 0xfff09038 / 0xc1d01000 |
| 32 | SMLAL_MZZI_HtoS | 110000011100xxxxxxx1xxxxxxx00xxx | 0xfff01018 / 0xc1c01000 |
Operands
| Name | Description |
|---|---|
ZAda | |
_ZAda | |
Rv | |
imm | |
Zn | |
Zm | |
i3 | |
imm | |
Zn | |
Zm | |
Zn | |
Zn | |
Zm | |
Zn |