FCMOV
FCMOV is a floating point conditional move opcode of the Intel x86 architecture, first introduced in Pentium Pro processors.[src] It copies the contents of one of the floating point stack register, depending on the contents of EFLAGS integer flag register, to the ST(0) (top of stack) register.[src] There are 8 variants of the instruction selected by the condition codes that need be set for the instruction to perform the move.[src] Similar to the CMOV instruction, FCMOV allows some conditional operations to be performed without the usual branching overhead.[src] However, it has a higher latency than conditional branch instructions.[src] Therefore, it is most useful for simple yet unpredictable comparison or conditional operations, where it can provide substantial performance gains.[src] The instruction is usually used with the FCOMI instruction or the FCOM-FSTSW-SAHF idiom to set the relevant condition codes based on the result of a floating point comparison.[src]
FCMOV is a floating point conditional move opcode of the Intel x86 architecture, first introduced in Pentium Pro processors.[src] It copies the contents of one of the floating point stack register, depending on the contents of EFLAGS integer flag register, to the ST(0) (top of stack) register.[src] There are 8 variants of the instruction selected by the condition codes that need be set for the instruction to perform the move.[src] Similar to the CMOV instruction, FCMOV allows some conditional operations to be performed without the usual branching overhead.[src] However, it has a higher latency than conditional branch instructions.[src] Therefore, it is most useful for simple yet unpredictable comparison or conditional operations, where it can provide substantial performance gains.[src] The instruction is usually used with the FCOMI instruction or the FCOM-FSTSW-SAHF idiom to set the relevant condition codes based on the result of a floating point comparison.[src] ==Variants== This table shows the variants of the FCMOV instructions.[src] The first operand is always the ST(0) register (equivalently, the top of the floating point stack).[src] The Opcode column indicates a two-byte sequence where the second byte is a base value indicating the number of the floating point stack register to use for the second operand.[src] Add the desired number to complete the corresponding opcode value.[src] ==References== ==External links== Software Optimization Resources Intel's official instruction set reference download page[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"FCMOV." encyclopegia.org, 2025, https://encyclopegia.org/wiki/fcmov. Accessed 30 November 2026.
Chicago
"FCMOV." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/fcmov.
APA
encyclopegia.org. (2025). FCMOV. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/fcmov
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON