SMIN
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, CSSC, NEONSummary
AArch64 SMIN instruction (A64, 32-bit) with 10 encoding variants extracted from LLVM TableGen. Extensions: CSSC, NEON.
Syntax / Encoding
SMINWrr: smin $Rd, $Rn, $Rm SMINv16i8: smin $Rd.16b, $Rn.16b, $Rm.16b SMINv2i32: smin $Rd.2s, $Rn.2s, $Rm.2s SMINv4i16: smin $Rd.4h, $Rn.4h, $Rm.4h SMINv4i32: smin $Rd.4s, $Rn.4s, $Rm.4s SMINv8i16: smin $Rd.8h, $Rn.8h, $Rm.8h SMINv8i8: smin $Rd.8b, $Rn.8b, $Rm.8b SMINWri: smin $Rd, $Rn, $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 |
| AmpereOne (Ampere1B) | 2 | 0.5 | 1 | Ampere1BUnitXY | llvm_sched_models |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
| AmpereOne (Ampere1) | 3 | 0.5 | 1 | Ampere1UnitXY | llvm_sched_models |
| Apple Cyclone (A7) | 3 | 0.33 | 1 | CyUnitV | llvm_sched_models |
| Marvell ThunderX3 T110 | 5 | 0.25 | 2 | THX3T110FP0123 | llvm_sched_models |
| Marvell ThunderX2 T99 | 7 | 0.5 | 3 | THX2T99F01 | llvm_sched_models |
| Fujitsu A64FX (SVE 512b) | 14 | 0.5 | 6 | A64FXGI03 | llvm_sched_models |
Binary Encodings (10)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | SMINWrr | 00011010110xxxxx011010xxxxxxxxxx | 0xffe0fc00 / 0x1ac06800 |
| 32 | SMINXrr | 10011010110xxxxx011010xxxxxxxxxx | 0xffe0fc00 / 0x9ac06800 |
| 32 | SMINv16i8 | 01001110001xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x4e206c00 |
| 32 | SMINv2i32 | 00001110101xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x0ea06c00 |
| 32 | SMINv4i16 | 00001110011xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x0e606c00 |
| 32 | SMINv4i32 | 01001110101xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x4ea06c00 |
| 32 | SMINv8i16 | 01001110011xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x4e606c00 |
| 32 | SMINv8i8 | 00001110001xxxxx011011xxxxxxxxxx | 0xffe0fc00 / 0x0e206c00 |
| 32 | SMINWri | 00010001110010xxxxxxxxxxxxxxxxxx | 0xfffc0000 / 0x11c80000 |
| 32 | SMINXri | 10010001110010xxxxxxxxxxxxxxxxxx | 0xfffc0000 / 0x91c80000 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
imm | |
Rm | |
Rd | |
Rn | |
imm | |
Rm | |
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm |