URSHL
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userSME, SME2, SVE2_or_SMESummary
AArch64 URSHL instruction (SME, 32-bit) with 20 encoding variants extracted from LLVM TableGen. Extensions: SME2, SVE2_or_SME.
Syntax / Encoding
URSHL_VG4_4Z4Z_B: urshl $Zdn, $_Zdn, $Zm URSHL_ZPmZ_B: urshl $Zdn, $Pg/m, $_Zdn, $Zm
Cross-Chip Latency & Throughput (4 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) | 3 | 0.33 | 1 | CyUnitV | llvm_sched_models |
| NVIDIA Olympus (Vera) | 4 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
Binary Encodings (12)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | URSHL_VG4_4Z4Z_B | 11000001001xxx0010111010001xxx01 | 0xffe3ffe3 / 0xc120ba21 |
| 32 | URSHL_VG4_4Z4Z_D | 11000001111xxx0010111010001xxx01 | 0xffe3ffe3 / 0xc1e0ba21 |
| 32 | URSHL_VG4_4Z4Z_H | 11000001011xxx0010111010001xxx01 | 0xffe3ffe3 / 0xc160ba21 |
| 32 | URSHL_VG4_4Z4Z_S | 11000001101xxx0010111010001xxx01 | 0xffe3ffe3 / 0xc1a0ba21 |
| 32 | URSHL_VG4_4ZZ_B | 110000010010xxxx10101010001xxx01 | 0xfff0ffe3 / 0xc120aa21 |
| 32 | URSHL_VG4_4ZZ_D | 110000011110xxxx10101010001xxx01 | 0xfff0ffe3 / 0xc1e0aa21 |
| 32 | URSHL_VG4_4ZZ_H | 110000010110xxxx10101010001xxx01 | 0xfff0ffe3 / 0xc160aa21 |
| 32 | URSHL_VG4_4ZZ_S | 110000011010xxxx10101010001xxx01 | 0xfff0ffe3 / 0xc1a0aa21 |
| 32 | URSHL_VG2_2Z2Z_B | 11000001001xxxx010110010001xxxx1 | 0xffe1ffe1 / 0xc120b221 |
| 32 | URSHL_VG2_2Z2Z_D | 11000001111xxxx010110010001xxxx1 | 0xffe1ffe1 / 0xc1e0b221 |
| 32 | URSHL_VG2_2Z2Z_H | 11000001011xxxx010110010001xxxx1 | 0xffe1ffe1 / 0xc160b221 |
| 32 | URSHL_VG2_2Z2Z_S | 11000001101xxxx010110010001xxxx1 | 0xffe1ffe1 / 0xc1a0b221 |
Operands
| Name | Description |
|---|---|
Zdn | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zm | |
Zm | |
Zm |