URSHL
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 URSHL instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
URSHLv16i8: urshl $Rd.16b, $Rn.16b, $Rm.16b URSHLv1i64: urshl $Rd, $Rn, $Rm URSHLv2i32: urshl $Rd.2s, $Rn.2s, $Rm.2s URSHLv2i64: urshl $Rd.2d, $Rn.2d, $Rm.2d URSHLv4i16: urshl $Rd.4h, $Rn.4h, $Rm.4h URSHLv4i32: urshl $Rd.4s, $Rn.4s, $Rm.4s URSHLv8i16: urshl $Rd.8h, $Rn.8h, $Rm.8h URSHLv8i8: urshl $Rd.8b, $Rn.8b, $Rm.8b
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 (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | URSHLv16i8 | 01101110001xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x6e205400 |
| 32 | URSHLv1i64 | 01111110111xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x7ee05400 |
| 32 | URSHLv2i32 | 00101110101xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x2ea05400 |
| 32 | URSHLv2i64 | 01101110111xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x6ee05400 |
| 32 | URSHLv4i16 | 00101110011xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x2e605400 |
| 32 | URSHLv4i32 | 01101110101xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x6ea05400 |
| 32 | URSHLv8i16 | 01101110011xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x6e605400 |
| 32 | URSHLv8i8 | 00101110001xxxxx010101xxxxxxxxxx | 0xffe0fc00 / 0x2e205400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm |