Skip to content

[mlir][arith] Canonicalization causes miscompilation on mulsi_extended #88732

Closed
@pingshiyu

Description

@pingshiyu

The code below computes mulsi_extended (-1) * (-1) : i1, which should yield an extended vector with value 1 : i2, or the bitvector 01. However, canonicalization seems to cause the code to miscompile and output the bitvector 11.

Reproduction: https://godbolt.org/z/8MYqsr1xd

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions