Skip to content

x86_64: fix destroyed_at_indirect_call for the Win64 ABI - #626

Open
xavierleroy wants to merge 1 commit into
masterfrom
x86_64-destroyed-at-indirect-call
Open

xavierleroy wants to merge 1 commit into
masterfrom
x86_64-destroyed-at-indirect-call

Conversation

@xavierleroy

Copy link
Copy Markdown
Contributor

In the ELF ABI, calls to variadic functions set the AL register. But in the Win64 ABI, it's registers CX, DX, R8 and R9 that may be destroyed, because some FP arguments are copied into them. (See file Asmexpand.ml.)

Issue reported by Yufei Wu and Alexandre Bartel (Umeå University).

In the ELF ABI, calls to variadic functions set the AL register.
But in the Win64 ABI, it's registers CX, DX, R8 and R9 that may be destroyed,
because some FP arguments are copied into them.  (See file Asmexpand.ml.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant