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

Reenable the use of the force-soft-floats feature #532

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antoyo
Copy link

@antoyo antoyo commented Apr 5, 2025

This fixes an infinite recursion in sqrt for codegen backends that implement intrinsics like simd_fsqrt by calling sqrt on every element of the vector.

This is going to be needed to fix rust-lang/compiler-builtins#649.

I was able to test this locally by changing some other code (basically having an implementation of _mm_sqrt_pd that calls the local sqrt function on all elements of the vector).
Do you have any ideas for how to add a test for this? Perhaps by including this implementation of _mm_sqrt_pd behind a #[cfg]?

This fixes an infinite recursion in sqrt for codegen backends that
implement intrinsics like simd_fsqrt by calling sqrt on every element of
the vector.
@antoyo antoyo force-pushed the fix/infinite-recursion-sqrt branch from 9f5e58d to ab5f6e3 Compare April 5, 2025 15:33
@antoyo antoyo marked this pull request as ready for review April 5, 2025 18:32
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.

Infinite recursion in sqrt
1 participant