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

crucible-mir: Support the exact_div intrinsic #1273

Open
RyanGlScott opened this issue Jan 15, 2025 · 0 comments
Open

crucible-mir: Support the exact_div intrinsic #1273

RyanGlScott opened this issue Jan 15, 2025 · 0 comments
Labels
crucible enhancement MIR Issues relating to Rust/MIR support

Comments

@RyanGlScott
Copy link
Contributor

crucible-mir does not currently support the exact_div family of intrinsics, but it reasonably could. exact_div(x, y) behaves like integer division, except that it produces undefined behavior when x % y != 0 or y == 0 or x == T::MIN && y == -1. Among other uses, this is used in the implementation of array_chunks.

@RyanGlScott RyanGlScott added enhancement crucible MIR Issues relating to Rust/MIR support labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crucible enhancement MIR Issues relating to Rust/MIR support
Projects
None yet
Development

No branches or pull requests

1 participant