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 SIMD register destruction #2311

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Fix SIMD register destruction #2311

merged 3 commits into from
Feb 27, 2024

Conversation

TheNumbat
Copy link
Contributor

@TheNumbat TheNumbat commented Feb 26, 2024

The various Proc functions need to know about the SIMD operations that return a value in a specific register.
This may have been benign because these operations always use the specific register as the result, but we should fix it regardless.

This was a default-match issue; we added the _to_xmm0 and _to_rcx SIMD register behaviors without being forced to update Proc.

The register_behavior functions were moved to a separate file to break a circular dependency with Proc.

@TheNumbat TheNumbat added the simd SIMD support label Feb 26, 2024
@TheNumbat TheNumbat changed the title Fix SIMD destroyed_at_oper Fix SIMD register destruction Feb 26, 2024
@TheNumbat TheNumbat requested a review from xclerc February 26, 2024 23:19
backend/arm64/simd_proc.ml Outdated Show resolved Hide resolved
backend/amd64/simd_proc.ml Outdated Show resolved Hide resolved
backend/amd64/proc.ml Outdated Show resolved Hide resolved
@TheNumbat TheNumbat merged commit bfb237d into main Feb 27, 2024
17 checks passed
@TheNumbat TheNumbat deleted the simd-destroyed-at-oper branch February 27, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simd SIMD support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants