Open
Description
From the SystemV X86 ABI specification:
The direction flag DF in the %rFLAGS register must be clear (set to “forward” direction) on function entry and return.
This needs to be done when we touch rflags
at all. Just clearing rflags
upon function exit seems like a reasonable enough option as we (for now) do not care about the flag values after the snippet has finished executing.