SRSHR
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 SRSHR instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
SRSHRv16i8_shift: srshr $Rd.16b, $Rn.16b, $imm SRSHRv8i8_shift: srshr $Rd.8b, $Rn.8b, $imm SRSHRv4i16_shift: srshr $Rd.4h, $Rn.4h, $imm SRSHRv8i16_shift: srshr $Rd.8h, $Rn.8h, $imm SRSHRv2i32_shift: srshr $Rd.2s, $Rn.2s, $imm SRSHRv4i32_shift: srshr $Rd.4s, $Rn.4s, $imm SRSHRd: srshr $Rd, $Rn, $imm SRSHRv2i64_shift: srshr $Rd.2d, $Rn.2d, $imm
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 | SRSHRv16i8_shift | 0100111100001xxx001001xxxxxxxxxx | 0xfff8fc00 / 0x4f082400 |
| 32 | SRSHRv8i8_shift | 0000111100001xxx001001xxxxxxxxxx | 0xfff8fc00 / 0x0f082400 |
| 32 | SRSHRv4i16_shift | 000011110001xxxx001001xxxxxxxxxx | 0xfff0fc00 / 0x0f102400 |
| 32 | SRSHRv8i16_shift | 010011110001xxxx001001xxxxxxxxxx | 0xfff0fc00 / 0x4f102400 |
| 32 | SRSHRv2i32_shift | 00001111001xxxxx001001xxxxxxxxxx | 0xffe0fc00 / 0x0f202400 |
| 32 | SRSHRv4i32_shift | 01001111001xxxxx001001xxxxxxxxxx | 0xffe0fc00 / 0x4f202400 |
| 32 | SRSHRd | 0101111101xxxxxx001001xxxxxxxxxx | 0xffc0fc00 / 0x5f402400 |
| 32 | SRSHRv2i64_shift | 0100111101xxxxxx001001xxxxxxxxxx | 0xffc0fc00 / 0x4f402400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
imm |