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

Refactor Miri float casting tests #126727

Closed
wants to merge 1 commit into from

Conversation

tgross35
Copy link
Contributor

This is an attempt to remove the magic from a lot of the numbers tested, which should make things easier when it is time to add f16 and f128. A nice side effect is that these tests now cover all int <-> float conversions with the same amount of tests.

I opted to not add f16 and f128 in this PR since we still dont have the constants needed for many of these tests (they will come in #126608, but that is blocked on #126636 and possibly #125016).

r? @RalfJung

This is an attempt to remove the magic from a lot of the numbers tested,
which should make things easier when it is time to add `f16` and `f128`.
A nice side effect is that these tests now cover all int <-> float
conversions with the same amount of tests.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 20, 2024
@rustbot
Copy link
Collaborator

rustbot commented Jun 20, 2024

The Miri subtree was changed

cc @rust-lang/miri

@RalfJung
Copy link
Member

Thanks!

Is it possible to make this a PR in the Miri repo? We have more test coverage there (such as a big-endian target).

@tgross35
Copy link
Contributor Author

Sure, gimme a few Minütchen

@tgross35 tgross35 closed this Jun 20, 2024
@tgross35
Copy link
Contributor Author

It is up at rust-lang/miri#3688

@tgross35 tgross35 deleted the miri-float-test-refactor branch July 16, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants