ASR
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userSME, SVE_or_SMESummary
AArch64 ASR instruction (SME, 32-bit) with 18 encoding variants extracted from LLVM TableGen. Extensions: SVE_or_SME.
Syntax / Encoding
ASR_ZPmI_B: asr $Zdn, $Pg/m, $_Zdn, $imm ASR_WIDE_ZPmZ_B: asr $Zdn, $Pg/m, $_Zdn, $Zm ASR_ZZI_B: asr $Zd, $Zn, $imm ASR_WIDE_ZZZ_B: asr $Zd, $Zn, $Zm
Cross-Chip Latency & Throughput (7 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Apple M1 Firestorm (P-core) | 1 | 0.167 | 1 | 1 - - u1-6 | apple_dougallj |
| Apple M1 Icestorm (E-core) | 1 | 0.333 | 1 | 1 - - u1-3 | apple_dougallj |
| Marvell ThunderX2 T99 | 1 | 0.33 | 2 | THX2T99I012 | llvm_sched_models |
| Marvell ThunderX3 T110 | 1 | 0.25 | 2 | THX3T110I0123 | llvm_sched_models |
| Samsung Exynos M5 | 1 | 0.17 | 1 | M5UnitAW | llvm_sched_models |
| Fujitsu A64FX (SVE 512b) | 2 | 0.5 | 1 | A64FXGI24 | llvm_sched_models |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
Binary Encodings (12)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | ASR_ZPmI_B | 0000010000000000100xxx01xxxxxxxx | 0xffffe300 / 0x04008100 |
| 32 | ASR_ZPmI_H | 0000010000000000100xxx1xxxxxxxxx | 0xffffe200 / 0x04008200 |
| 32 | ASR_WIDE_ZPmZ_B | 0000010000011000100xxxxxxxxxxxxx | 0xffffe000 / 0x04188000 |
| 32 | ASR_WIDE_ZPmZ_H | 0000010001011000100xxxxxxxxxxxxx | 0xffffe000 / 0x04588000 |
| 32 | ASR_WIDE_ZPmZ_S | 0000010010011000100xxxxxxxxxxxxx | 0xffffe000 / 0x04988000 |
| 32 | ASR_ZPmI_S | 0000010001000000100xxxxxxxxxxxxx | 0xffffe000 / 0x04408000 |
| 32 | ASR_ZPmZ_B | 0000010000010000100xxxxxxxxxxxxx | 0xffffe000 / 0x04108000 |
| 32 | ASR_ZPmZ_D | 0000010011010000100xxxxxxxxxxxxx | 0xffffe000 / 0x04d08000 |
| 32 | ASR_ZPmZ_H | 0000010001010000100xxxxxxxxxxxxx | 0xffffe000 / 0x04508000 |
| 32 | ASR_ZPmZ_S | 0000010010010000100xxxxxxxxxxxxx | 0xffffe000 / 0x04908000 |
| 32 | ASR_ZZI_B | 0000010000101xxx100100xxxxxxxxxx | 0xfff8fc00 / 0x04289000 |
| 32 | ASR_ZPmI_D | 000001001x000000100xxxxxxxxxxxxx | 0xffbfe000 / 0x04808000 |
Operands
| Name | Description |
|---|---|
Zdn | |
Pg | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zdn | |
_Zdn | |
Zd | |
Zn | |
Zd | |
Zn | |
Zd | |
Zn |