Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

windows/x64 call convention: only use XMM0 for float return values #701

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

steffengy
Copy link
Contributor

@steffengy steffengy commented Mar 9, 2019

Previously we triggered the debug_assert for functions returning floats.
This adds a testcase and fixes the behavior.

#691

@bnjbvr
Copy link
Member

bnjbvr commented Mar 11, 2019

Good catch, thanks for adding a test case too! Another possible fix would have been to tweak the assert so that num float regs <= num GPRs, but being precise is even better. Cheers!

@bnjbvr bnjbvr merged commit ba16b60 into bytecodealliance:master Mar 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants