cdqe

x86-64 and later

Convert Doubleword to Quadword

cdqe

Sign extends eax into rax, so that a 32 bit signed value read from memory or returned by a syscall can be used in 64 bit arithmetic. It takes no operands and touches no other register. movsxd rax, eax does the same thing in two more bytes.

Loading...

Forms

Every form of cdqe the assembler accepts.

FormSinceNotes
cdqe x86-64long