Skip to content

Conversation

@tarcieri
Copy link
Member

Closes #1298

The previous portable implementation truncated integers when comparing them in the u64 implemenation of CmovEq.

This adds a macro adapted from ctutils and uses it everywhere 64-bit integers are being compared in the portable implementation.

Closes #1298

The previous portable implementation truncated integers when comparing
them in the `u64` implemenation of `CmovEq`.

This adds a macro adapted from `ctutils` and uses it everywhere 64-bit
integers are being compared in the portable implementation.
@tarcieri tarcieri merged commit a069771 into master Dec 28, 2025
20 checks passed
@tarcieri tarcieri deleted the cmov/fix-truncation-bug-in-portable-impl branch December 28, 2025 05:51
tarcieri added a commit that referenced this pull request Dec 28, 2025
Issues like #1300 could ideally be caught via more fastidious linting.

This adds several additional lints and TODOs to address the ones which
are currently failing.
tarcieri added a commit that referenced this pull request Dec 28, 2025
Issues like #1300 could ideally be caught via more fastidious linting.

This adds several additional lints and TODOs to address the ones which
are currently failing.
tarcieri added a commit that referenced this pull request Dec 28, 2025
Issues like #1300 could ideally be caught via more fastidious linting.

This adds several additional lints and TODOs to address the ones which
are currently failing.
@tarcieri tarcieri mentioned this pull request Dec 28, 2025
tarcieri added a commit that referenced this pull request Dec 28, 2025
### Fixed
- `aarch64` ASM bug (#1299)
- Truncation bug in portable implementation (#1300)
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.

cmov: cmoveq/cmovne proptest failure on powerpc-unknown-linux-gnu

2 participants