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

handle unsupported null constants like float32 constants #3564

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

dkalinichenko-js
Copy link
Contributor

@dkalinichenko-js dkalinichenko-js commented Feb 10, 2025

Like float32 constants, null constants are not supported by the upstream bytecode marshalling functions. Since we run flambda_backend/tests using the stage 1/bootstrap compiler using the upstream runtime, moving or_null to stable runs into this problem again.

Eventually, we should just build those tests using the final compiler. But for now, it's easier to do the same trick for or_null.

Tested by #3565.

@dkalinichenko-js dkalinichenko-js marked this pull request as ready for review February 10, 2025 22:32
Copy link
Contributor

@TheNumbat TheNumbat left a comment

Choose a reason for hiding this comment

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

Are there particular tests in 3565 that this fixes?

bytecomp/bytegen.ml Outdated Show resolved Hide resolved
@dkalinichenko-js
Copy link
Contributor Author

Are there particular tests in 3565 that this fixes?

All tests under flambda-backend/tests fail when trying to load stdlib_stable otherwise.

@dkalinichenko-js dkalinichenko-js force-pushed the dkalinichenko/bytecode-stage1-null branch from 2302b95 to bdc1133 Compare February 11, 2025 18:54
@dkalinichenko-js dkalinichenko-js merged commit 6593930 into main Feb 11, 2025
24 checks passed
@dkalinichenko-js dkalinichenko-js deleted the dkalinichenko/bytecode-stage1-null branch February 11, 2025 19:20
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.

3 participants