CDQE: Convert Doubleword to Quadword

For information about interpreting this page, see the help page.
Opcode and MnemonicEncoding16 bit Mode32 bit Mode64 bit ModeDescription
REX.W 98
CDQE
ZONot EncodableNot EncodableValidSign extend EAX into RAX.

Encoding

EncodingOperand
ZONone

Description

The CDQE instruction sign extends EAX into RAX.

Operation

This pseudo-code uses C# syntax. A list of the types used is available here.
public void CDQE()
{
  RAX = SignExtend(EAX);
}

Flags Affected

CF (carry flag)
Unmodified.
PF (parity flag)
Unmodified.
AF (auxiliary flag)
Unmodified.
ZF (zero flag)
Unmodified.
SF (sign flag)
Unmodified.
OF (overflow flag)
Unmodified.

Exceptions

Long Mode

#UD
If the LOCK prefix is used.