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

Use float32 for float32x4 scalar casts #2710

Merged
merged 24 commits into from
Jul 9, 2024
Merged

Use float32 for float32x4 scalar casts #2710

merged 24 commits into from
Jul 9, 2024

Conversation

TheNumbat
Copy link
Contributor

@TheNumbat TheNumbat commented Jun 21, 2024

Updates the following builtins to operate on 32-bit floats:

  • caml_float32x4_low_to_float
  • caml_float32x4_low_of_float
  • caml_float32x4_const1
  • caml_float32x4_const4

The new builtins take and return unboxed float32s. This allows us to remove the special cases in the backend for converting to/from 64-bit floats.

The SIMD tests have been updated to reflect the new behavior.

@TheNumbat TheNumbat added the simd SIMD support label Jun 21, 2024
@TheNumbat TheNumbat marked this pull request as ready for review June 24, 2024 23:49
@TheNumbat TheNumbat requested a review from xclerc June 24, 2024 23:49
backend/cmm_builtins.ml Outdated Show resolved Hide resolved
backend/amd64/emit.mlp Show resolved Hide resolved
Base automatically changed from f32-stable to main July 9, 2024 18:14
@TheNumbat TheNumbat merged commit 6f29cba into main Jul 9, 2024
18 checks passed
@TheNumbat TheNumbat deleted the f32-simd branch July 9, 2024 18:53
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.

None yet

2 participants