Skip to content

[mlir][arith] ceildivsi wrong lowering #106519

Closed
@pingshiyu

Description

@pingshiyu

The following code computes the value (ceildivsi -128 7), and should produce -18. However, the compiled code will output 18 on trunk (when run with mlir-cpu-runner ).

A similar bug was previously reported in #89382, but the fix addressed only the constant folder. It appears the lowering is incorrect as well.

https://godbolt.org/z/4KzG3chYG

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