FSUB
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, FPARMv8, FullFP16, NEONSummary
AArch64 FSUB instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: FPARMv8, FullFP16, NEON.
Syntax / Encoding
FSUBDrr: fsub $Rd, $Rn, $Rm FSUBv2f32: fsub $Rd.2s, $Rn.2s, $Rm.2s FSUBv2f64: fsub $Rd.2d, $Rn.2d, $Rm.2d FSUBv4f32: fsub $Rd.4s, $Rn.4s, $Rm.4s FSUBv4f16: fsub $Rd.4h, $Rn.4h, $Rm.4h FSUBv8f16: fsub $Rd.8h, $Rn.8h, $Rm.8h
Cross-Chip Latency & Throughput (8 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 |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
| Qualcomm Oryon | 3 | 0.25 | 1 | ORYONFP0123 | llvm_sched_models |
| Apple Cyclone (A7) | 4–5 | 0.33 | 1 | CyUnitV | llvm_sched_models |
| Fujitsu A64FX (SVE 512b) | 4–9 | 0.5 | 1 | A64FXGI03 | llvm_sched_models |
| Marvell ThunderX2 T99 | 6 | 0.5 | 3 | THX2T99F01 | llvm_sched_models |
| Marvell ThunderX3 T110 | 6 | 0.25 | 3 | THX3T110FP0123 | llvm_sched_models |
Binary Encodings (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | FSUBDrr | 00011110011xxxxx001110xxxxxxxxxx | 0xffe0fc00 / 0x1e603800 |
| 32 | FSUBHrr | 00011110111xxxxx001110xxxxxxxxxx | 0xffe0fc00 / 0x1ee03800 |
| 32 | FSUBSrr | 00011110001xxxxx001110xxxxxxxxxx | 0xffe0fc00 / 0x1e203800 |
| 32 | FSUBv2f32 | 00001110101xxxxx110101xxxxxxxxxx | 0xffe0fc00 / 0x0ea0d400 |
| 32 | FSUBv2f64 | 01001110111xxxxx110101xxxxxxxxxx | 0xffe0fc00 / 0x4ee0d400 |
| 32 | FSUBv4f32 | 01001110101xxxxx110101xxxxxxxxxx | 0xffe0fc00 / 0x4ea0d400 |
| 32 | FSUBv4f16 | 00001110110xxxxx000101xxxxxxxxxx | 0xffe0fc00 / 0x0ec01400 |
| 32 | FSUBv8f16 | 01001110110xxxxx000101xxxxxxxxxx | 0xffe0fc00 / 0x4ec01400 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm | |
Rd | |
Rn | |
Rm | |
Rd | |
Rn |