USHR
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, NEONSummary
AArch64 USHR instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.
Syntax / Encoding
USHRv16i8_shift: ushr $Rd.16b, $Rn.16b, $imm USHRv8i8_shift: ushr $Rd.8b, $Rn.8b, $imm USHRv4i16_shift: ushr $Rd.4h, $Rn.4h, $imm USHRv8i16_shift: ushr $Rd.8h, $Rn.8h, $imm USHRv2i32_shift: ushr $Rd.2s, $Rn.2s, $imm USHRv4i32_shift: ushr $Rd.4s, $Rn.4s, $imm USHRd: ushr $Rd, $Rn, $imm USHRv2i64_shift: ushr $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 | USHRv16i8_shift | 0110111100001xxx000001xxxxxxxxxx | 0xfff8fc00 / 0x6f080400 |
| 32 | USHRv8i8_shift | 0010111100001xxx000001xxxxxxxxxx | 0xfff8fc00 / 0x2f080400 |
| 32 | USHRv4i16_shift | 001011110001xxxx000001xxxxxxxxxx | 0xfff0fc00 / 0x2f100400 |
| 32 | USHRv8i16_shift | 011011110001xxxx000001xxxxxxxxxx | 0xfff0fc00 / 0x6f100400 |
| 32 | USHRv2i32_shift | 00101111001xxxxx000001xxxxxxxxxx | 0xffe0fc00 / 0x2f200400 |
| 32 | USHRv4i32_shift | 01101111001xxxxx000001xxxxxxxxxx | 0xffe0fc00 / 0x6f200400 |
| 32 | USHRd | 0111111101xxxxxx000001xxxxxxxxxx | 0xffc0fc00 / 0x7f400400 |
| 32 | USHRv2i64_shift | 0110111101xxxxxx000001xxxxxxxxxx | 0xffc0fc00 / 0x6f400400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
Rd | |
Rn | |
imm | |
imm |