Skip to content

[mlir][arith] --convert-arith-to-llvm miscompiles arith.ceildivsi #89382

@pingshiyu

Description

@pingshiyu

The following code computes ceildivsi -128, 7, with an expected result of -18.

However, --convert-arith-to-llvm produces an incorrect output of 18.

Reproduction: https://godbolt.org/z/cWf96T8v3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions