8000 Domainstate slots are unaligned by TheNumbat · Pull Request #4171 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Domainstate slots are unaligned #4171

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

Merged
merged 2 commits into from
Jun 24, 2025
Merged

Domainstate slots are unaligned #4171

merged 2 commits into from
Jun 24, 2025

Conversation

TheNumbat
Copy link
Contributor
@TheNumbat TheNumbat commented Jun 23, 2025

We currently use aligned moves for SIMD regs with a Stack location, but this also includes Domainstate slots, which may not be 16-aligned. Hence we should use an unaligned move in that case. Additionally, calling_conventions should not align the stack offset when it's negative, which indicates a domainstate slot. It was previously aligning down and assigning multiple values to the same slot.

This fixes a crash in #4166

@TheNumbat TheNumbat force-pushed the unaligned-domainstate-args branch from 526fe07 to fc1c733 Compare June 23, 2025 18:36
@TheNumbat TheNumbat changed the title Unaligned domainstate args Domainstate slots are unaligned Jun 23, 2025
@TheNumbat TheNumbat requested a review from gretay-js June 23, 2025 18:39
@TheNumbat TheNumbat added bug Something isn't working backend labels Jun 23, 2025
@TheNumbat TheNumbat marked this pull request as ready for review June 23, 2025 18:58
Copy link
Collaborator
@mshinwell mshinwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one thing to fix

@TheNumbat TheNumbat enabled auto-merge (squash) June 24, 2025 14:39
@TheNumbat TheNumbat merged commit 5f02144 into main Jun 24, 2025
31 of 32 checks passed
@TheNumbat TheNumbat deleted the unaligned-domainstate-args branch June 24, 2025 16:53
mshinwell pushed a commit that referenced this pull request Jun 25, 2025
* unaligned domainstate

* fix calling conventions

(cherry picked from commit 5f02144)

(This commit only has the vec128 parts, not vec256/512)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0