SRI
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 SRI instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
SRIv16i8_shift: sri $Rd.16b, $Rn.16b, $imm SRIv8i8_shift: sri $Rd.8b, $Rn.8b, $imm SRIv4i16_shift: sri $Rd.4h, $Rn.4h, $imm SRIv8i16_shift: sri $Rd.8h, $Rn.8h, $imm SRIv2i32_shift: sri $Rd.2s, $Rn.2s, $imm SRIv4i32_shift: sri $Rd.4s, $Rn.4s, $imm SRId: sri $Rd, $Rn, $imm SRIv2i64_shift: sri $Rd.2d, $Rn.2d, $imm
Cross-Chip Latency & Throughput (2 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 |
Binary Encodings (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | SRIv16i8_shift | 0110111100001xxx010001xxxxxxxxxx | 0xfff8fc00 / 0x6f084400 |
| 32 | SRIv8i8_shift | 0010111100001xxx010001xxxxxxxxxx | 0xfff8fc00 / 0x2f084400 |
| 32 | SRIv4i16_shift | 001011110001xxxx010001xxxxxxxxxx | 0xfff0fc00 / 0x2f104400 |
| 32 | SRIv8i16_shift | 011011110001xxxx010001xxxxxxxxxx | 0xfff0fc00 / 0x6f104400 |
| 32 | SRIv2i32_shift | 00101111001xxxxx010001xxxxxxxxxx | 0xffe0fc00 / 0x2f204400 |
| 32 | SRIv4i32_shift | 01101111001xxxxx010001xxxxxxxxxx | 0xffe0fc00 / 0x6f204400 |
| 32 | SRId | 0111111101xxxxxx010001xxxxxxxxxx | 0xffc0fc00 / 0x7f404400 |
| 32 | SRIv2i64_shift | 0110111101xxxxxx010001xxxxxxxxxx | 0xffc0fc00 / 0x6f404400 |
Operands
| Name | Description |
|---|---|
dst | |
Rd | |
Rn | |
imm | |
dst | |
Rd | |
Rn | |
imm | |
dst | |
Rd | |
Rn | |
imm | |
imm |