Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 128-bit constant emission #1567

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Fix 128-bit constant emission #1567

merged 1 commit into from
Jul 14, 2023

Conversation

TheNumbat
Copy link
Contributor

128-bit vector constants need to be emitted within a data section with @progbits=16, or gas may de-duplicate them in 8-byte chunks. Also, we were only checking for float constants before emitting both float and vec128 constants.

Aligning the vec128 constant section also means we can use movapd when loading constants.

@TheNumbat TheNumbat merged commit 44b72c3 into main Jul 14, 2023
@TheNumbat TheNumbat deleted the vec128-consts branch July 14, 2023 15:14
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.

2 participants