Skip to content

AEABI functions must handle division by 0 properly. #485

Open
@Lokathor

Description

@Lokathor

Rust won't call an AEABI division function with a divide by 0, but other code compiled into the same program (eg: C code) might end up calling an AEABI function with a divide by 0.

Right now, zero_div_fn just makes the division by zero an unreachable_unchecked!(), which puts us slightly out of spec with what the AEABI division functions are supposed to do.

This is a low-priority bug, but should be handled eventually.

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