Skip to content

Assembler - Instructions div/divu expand into macros without means of disabling them #62

@Souzooka

Description

@Souzooka

When compiling assembly .s files which contain division instructions (div/divu), these instructions expand into multiple instructions which check if the divisor is 0, or (for div) if the divisor is -1 and the dividend is INT_MIN.

There seems to be no means of disabling this macro if unwanted, however. Command line arguments -mno-check-zero-division, --no-break, --no-trap, appear to have no effect on the compiled output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions