URSHR
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 URSHR instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
URSHRv16i8_shift: urshr $Rd.16b, $Rn.16b, $imm URSHRv8i8_shift: urshr $Rd.8b, $Rn.8b, $imm URSHRv4i16_shift: urshr $Rd.4h, $Rn.4h, $imm URSHRv8i16_shift: urshr $Rd.8h, $Rn.8h, $imm URSHRv2i32_shift: urshr $Rd.2s, $Rn.2s, $imm URSHRv4i32_shift: urshr $Rd.4s, $Rn.4s, $imm URSHRd: urshr $Rd, $Rn, $imm URSHRv2i64_shift: urshr $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 | URSHRv16i8_shift | 0110111100001xxx001001xxxxxxxxxx | 0xfff8fc00 / 0x6f082400 |
| 32 | URSHRv8i8_shift | 0010111100001xxx001001xxxxxxxxxx | 0xfff8fc00 / 0x2f082400 |
| 32 | URSHRv4i16_shift | 001011110001xxxx001001xxxxxxxxxx | 0xfff0fc00 / 0x2f102400 |
| 32 | URSHRv8i16_shift | 011011110001xxxx001001xxxxxxxxxx | 0xfff0fc00 / 0x6f102400 |
| 32 | URSHRv2i32_shift | 00101111001xxxxx001001xxxxxxxxxx | 0xffe0fc00 / 0x2f202400 |
| 32 | URSHRv4i32_shift | 01101111001xxxxx001001xxxxxxxxxx | 0xffe0fc00 / 0x6f202400 |
| 32 | URSHRd | 0111111101xxxxxx001001xxxxxxxxxx | 0xffc0fc00 / 0x7f402400 |
| 32 | URSHRv2i64_shift | 0110111101xxxxxx001001xxxxxxxxxx | 0xffc0fc00 / 0x6f402400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
imm |