cmovg

Conditional Move Greater

CMOVG r, r/m

Move if ZF=0 and SF=OF.

Details

The Conditional Move Greater instruction move if ZF=0 and SF=OF.

Pseudocode Operation

IF condition THEN DEST <- SRC

Example

CMOVG rax, rbx

Encoding

Binary Layout
0F
+0
4F
+1
 
Format Legacy
Opcode 0F 4F
Extension CMOV

Operands

  • dest
    General-purpose register
  • src
    Register or memory operand