RFLAGS
RFLAGS is the 64-bit processor status and control register in the x86-64 architecture. It is the 64-bit extension of the legacy EFLAGS register used in 32-bit mode. RFLAGS holds a mix of condition flags, system flags, and privilege-related controls that influence instruction behavior, interrupt handling, and task state.
The lower portion of RFLAGS contains the familiar condition flags: the carry flag (CF), parity flag (PF),
In 64-bit mode, the lower 32 bits of RFLAGS preserve the traditional EFLAGS behavior, while the upper
RFLAGS is accessed and modified by instructions such as PUSHFQ/POPFQ (for 64-bit pushes and pops) and, in
See also EFLAGS and FLAGS register for related 32-bit behavior.