FMAX
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userSME, SME2, SVE_or_SMESummary
AArch64 FMAX instruction (SME, 32-bit) with 18 encoding variants extracted from LLVM TableGen. Extensions: SME2, SVE_or_SME.
Syntax / Encoding
FMAX_VG4_4Z4Z_D: fmax $Zdn, $_Zdn, $Zm FMAX_ZPmI_D: fmax $Zdn, $Pg/m, $_Zdn, $i1 FMAX_ZPmZ_D: fmax $Zdn, $Pg/m, $_Zdn, $Zm
Cross-Chip Latency & Throughput (7 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 |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
| Apple Cyclone (A7) | 3 | 0.33 | 1 | CyUnitV | llvm_sched_models |
| Fujitsu A64FX (SVE 512b) | 4 | 1 | 1 | A64FXGI0 | llvm_sched_models |
| Marvell ThunderX2 T99 | 5 | 0.5 | 2 | THX2T99F01 | llvm_sched_models |
| Marvell ThunderX3 T110 | 5 | 0.25 | 2 | THX3T110FP0123 | llvm_sched_models |
Binary Encodings (12)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | FMAX_VG4_4Z4Z_D | 11000001111xxx0010111001000xxx00 | 0xffe3ffe3 / 0xc1e0b900 |
| 32 | FMAX_VG4_4Z4Z_H | 11000001011xxx0010111001000xxx00 | 0xffe3ffe3 / 0xc160b900 |
| 32 | FMAX_VG4_4Z4Z_S | 11000001101xxx0010111001000xxx00 | 0xffe3ffe3 / 0xc1a0b900 |
| 32 | FMAX_VG4_4ZZ_D | 110000011110xxxx10101001000xxx00 | 0xfff0ffe3 / 0xc1e0a900 |
| 32 | FMAX_VG4_4ZZ_H | 110000010110xxxx10101001000xxx00 | 0xfff0ffe3 / 0xc160a900 |
| 32 | FMAX_VG4_4ZZ_S | 110000011010xxxx10101001000xxx00 | 0xfff0ffe3 / 0xc1a0a900 |
| 32 | FMAX_VG2_2Z2Z_D | 11000001111xxxx010110001000xxxx0 | 0xffe1ffe1 / 0xc1e0b100 |
| 32 | FMAX_VG2_2Z2Z_H | 11000001011xxxx010110001000xxxx0 | 0xffe1ffe1 / 0xc160b100 |
| 32 | FMAX_VG2_2Z2Z_S | 11000001101xxxx010110001000xxxx0 | 0xffe1ffe1 / 0xc1a0b100 |
| 32 | FMAX_VG2_2ZZ_D | 110000011110xxxx10100001000xxxx0 | 0xfff0ffe1 / 0xc1e0a100 |
| 32 | FMAX_VG2_2ZZ_H | 110000010110xxxx10100001000xxxx0 | 0xfff0ffe1 / 0xc160a100 |
| 32 | FMAX_VG2_2ZZ_S | 110000011010xxxx10100001000xxxx0 | 0xfff0ffe1 / 0xc1a0a100 |
Operands
| Name | Description |
|---|---|
Zdn | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zm | |
Zdn | |
_Zdn | |
Zm | |
Zm | |
Zm | |
Zm | |
Zdn | |
_Zdn |