FCVTNS
llvm_aarch64_isa)Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
llvm/main
userA64, FPARMv8, FPRCVT, FullFP16, NEONandIsFPRCVTStreamingSafeSummary
AArch64 FCVTNS instruction (A64, 32-bit) with 18 encoding variants extracted from LLVM TableGen. Extensions: FPARMv8, FPRCVT, FullFP16, NEONandIsFPRCVTStreamingSafe.
Syntax / Encoding
FCVTNSDHr: fcvtns $Rd, $Rn FCVTNSv2f32: fcvtns $Rd.2s, $Rn.2s FCVTNSv2f64: fcvtns $Rd.2d, $Rn.2d FCVTNSv4f32: fcvtns $Rd.4s, $Rn.4s FCVTNSv4f16: fcvtns $Rd.4h, $Rn.4h FCVTNSv8f16: fcvtns $Rd.8h, $Rn.8h
Cross-Chip Latency & Throughput (2 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 |
Binary Encodings (12)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | FCVTNSDHr | 1001111011101010000000xxxxxxxxxx | 0xfffffc00 / 0x9eea0000 |
| 32 | FCVTNSDSr | 1001111000101010000000xxxxxxxxxx | 0xfffffc00 / 0x9e2a0000 |
| 32 | FCVTNSSDr | 0001111001101010000000xxxxxxxxxx | 0xfffffc00 / 0x1e6a0000 |
| 32 | FCVTNSSHr | 0001111011101010000000xxxxxxxxxx | 0xfffffc00 / 0x1eea0000 |
| 32 | FCVTNSUWDr | 0001111001100000000000xxxxxxxxxx | 0xfffffc00 / 0x1e600000 |
| 32 | FCVTNSUWHr | 0001111011100000000000xxxxxxxxxx | 0xfffffc00 / 0x1ee00000 |
| 32 | FCVTNSUWSr | 0001111000100000000000xxxxxxxxxx | 0xfffffc00 / 0x1e200000 |
| 32 | FCVTNSUXDr | 1001111001100000000000xxxxxxxxxx | 0xfffffc00 / 0x9e600000 |
| 32 | FCVTNSUXHr | 1001111011100000000000xxxxxxxxxx | 0xfffffc00 / 0x9ee00000 |
| 32 | FCVTNSUXSr | 1001111000100000000000xxxxxxxxxx | 0xfffffc00 / 0x9e200000 |
| 32 | FCVTNSv1i32 | 0101111000100001101010xxxxxxxxxx | 0xfffffc00 / 0x5e21a800 |
| 32 | FCVTNSv1i64 | 0101111001100001101010xxxxxxxxxx | 0xfffffc00 / 0x5e61a800 |
Operands
| Name | Description |
|---|---|
Rd | |
Rn | |
Rn | |
Rd | |
Rn | |
Rd | |
Rd | |
Rd | |
Rd | |
Rn | |
Rd | |
Rn |