Skip to content

__rust_u128_mulo aborts when rhs is zero #367

Closed
@bjorn3

Description

@bjorn3

if self > Self::max_value().aborting_div(other) {

This is not a problem when using cg_llvm, as it is never called. However unlike cg_llvm, cg_clif does use it for the checked u128 multiplication implementation.

cc https://github.com/bjorn3/rustc_codegen_cranelift/issues/1063

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions