Skip to content

Conversation

ncough
Copy link
Collaborator

@ncough ncough commented Apr 16, 2025

Adds a primitive operation udiv_bits to perform unsigned bitvector division. Similar to sdiv_bits, this operation will fail when the denominator is 0, but does not share the overflow case of INT_MIN/-1. Also adds a vector variant and corresponding vectoriser logic.

Addresses #135. Holding off for now due to required changes to Basil and Alive2.

ncough added 3 commits April 16, 2025 10:57
* Add udiv_bits primitive when lowering division over unsigned args
* Add a vector variant, udiv_vec, with logic to introduce it
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.

1 participant