Skip to content

[llvm-exegesis] DF flag not being restored #116127

Open
@boomanaiden154

Description

@boomanaiden154

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions