FNEG
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, FPARMv8, FullFP16, NEONSummary
AArch64 FNEG instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: FPARMv8, FullFP16, NEON.
Syntax / Encoding
FNEGDr: fneg $Rd, $Rn FNEGv2f32: fneg $Rd.2s, $Rn.2s FNEGv2f64: fneg $Rd.2d, $Rn.2d FNEGv4f32: fneg $Rd.4s, $Rn.4s FNEGv4f16: fneg $Rd.4h, $Rn.4h FNEGv8f16: fneg $Rd.8h, $Rn.8h
Cross-Chip Latency & Throughput (10 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 |
| Samsung Exynos M3 | 1 | 0.33 | 1 | M3UnitNALU | llvm_sched_models |
| Samsung Exynos M4 | 1 | 0.33 | 1 | M4UnitNALU | llvm_sched_models |
| HiSilicon TaiShan v110 | 2 | 0.5 | 1 | TSV110UnitF | llvm_sched_models |
| NVIDIA Olympus (Vera) | 2 | 0.17 | 1 | OlympusUnitV | llvm_sched_models |
| Samsung Exynos M5 | 2 | 0.33 | 1 | M5UnitNALU | llvm_sched_models |
| Fujitsu A64FX (SVE 512b) | 4 | 0.5 | 1 | A64FXGI03 | 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 (8)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | FNEGDr | 0001111001100001010000xxxxxxxxxx | 0xfffffc00 / 0x1e614000 |
| 32 | FNEGHr | 0001111011100001010000xxxxxxxxxx | 0xfffffc00 / 0x1ee14000 |
| 32 | FNEGSr | 0001111000100001010000xxxxxxxxxx | 0xfffffc00 / 0x1e214000 |
| 32 | FNEGv2f32 | 0010111010100000111110xxxxxxxxxx | 0xfffffc00 / 0x2ea0f800 |
| 32 | FNEGv2f64 | 0110111011100000111110xxxxxxxxxx | 0xfffffc00 / 0x6ee0f800 |
| 32 | FNEGv4f32 | 0110111010100000111110xxxxxxxxxx | 0xfffffc00 / 0x6ea0f800 |
| 32 | FNEGv4f16 | 0010111011111000111110xxxxxxxxxx | 0xfffffc00 / 0x2ef8f800 |
| 32 | FNEGv8f16 | 0110111011111000111110xxxxxxxxxx | 0xfffffc00 / 0x6ef8f800 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
Rd | |
Rn | |
Rd | |
Rn | |
Rd | |
Rn | |
Rd | |
Rn |