SSHR
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 SSHR instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
SSHRv16i8_shift: sshr $Rd.16b, $Rn.16b, $imm SSHRv8i8_shift: sshr $Rd.8b, $Rn.8b, $imm SSHRv4i16_shift: sshr $Rd.4h, $Rn.4h, $imm SSHRv8i16_shift: sshr $Rd.8h, $Rn.8h, $imm SSHRv2i32_shift: sshr $Rd.2s, $Rn.2s, $imm SSHRv4i32_shift: sshr $Rd.4s, $Rn.4s, $imm SSHRd: sshr $Rd, $Rn, $imm SSHRv2i64_shift: sshr $Rd.2d, $Rn.2d, $imm
Cross-Chip Latency & Throughput (9 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Apple M1 Firestorm (P-core) | 2 | 0.25 | 1 | - - 1 u11-14 | apple_dougallj |
| Apple M1 Icestorm (E-core) | 2 | 0.5 | 1 | - - 1 u6-7 | apple_dougallj |
| Apple Cyclone (A7) | 2 | 0.33 | 1 | CyUnitV | llvm_sched_models |
| Arm C1-Premium | 2 | 0.5 | 1 | C1PUnitV | llvm_sched_models |
| Arm Neoverse N2 | 2 | 1 | 1 | N2UnitV1 | llvm_sched_models |
| Arm Neoverse V2 | 2 | 0.5 | 1 | V2UnitV13 | llvm_sched_models |
| Arm Neoverse V3 | 2 | 0.25 | 1 | V3UnitV | llvm_sched_models |
| Arm Neoverse V3AE | 2 | 0.5 | 1 | V3AEUnitV | llvm_sched_models |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
Binary Encodings (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | SSHRv16i8_shift | 0100111100001xxx000001xxxxxxxxxx | 0xfff8fc00 / 0x4f080400 |
| 32 | SSHRv8i8_shift | 0000111100001xxx000001xxxxxxxxxx | 0xfff8fc00 / 0x0f080400 |
| 32 | SSHRv4i16_shift | 000011110001xxxx000001xxxxxxxxxx | 0xfff0fc00 / 0x0f100400 |
| 32 | SSHRv8i16_shift | 010011110001xxxx000001xxxxxxxxxx | 0xfff0fc00 / 0x4f100400 |
| 32 | SSHRv2i32_shift | 00001111001xxxxx000001xxxxxxxxxx | 0xffe0fc00 / 0x0f200400 |
| 32 | SSHRv4i32_shift | 01001111001xxxxx000001xxxxxxxxxx | 0xffe0fc00 / 0x4f200400 |
| 32 | SSHRd | 0101111101xxxxxx000001xxxxxxxxxx | 0xffc0fc00 / 0x5f400400 |
| 32 | SSHRv2i64_shift | 0100111101xxxxxx000001xxxxxxxxxx | 0xffc0fc00 / 0x4f400400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
imm |