Skip to content

Divisibility is not properly optimized on aarch64 #453

Open
@ArhanChaudhary

Description

@ArhanChaudhary

The x86 architecture recognizes how to do efficient divisibility testing (https://lomont.org/posts/2017/divisibility-testing/) but not aarch64: https://godbolt.org/z/MhbKvvc4b

It's possible this is not a portable-simd problem and instead somewhere else down the line.

Meta

rustc --version --verbose:

rustc 1.87.0-nightly (30f168ef8 2025-03-05)
binary: rustc
commit-hash: 30f168ef811aec63124eac677e14699baa9395bd
commit-date: 2025-03-05
host: x86_64-unknown-linux-gnu
release: 1.87.0-nightly
LLVM version: 20.1.0

crate version in Cargo.toml:

[dependencies]
stdsimd = 

(I don't know how to check on compiler explorer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions