Skip to content

Navigation Menu

Sign up

x86_64: fix destroyed_at_indirect_call for the Win64 ABI - #626

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

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

Conversation

@xavierleroy

@xavierleroy xavierleroy commented Dec 1, 2026

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /