Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL dialect canonicalizer mishandles sub when the left operand is constant zero, the right operand is unsigned, and the subtraction result is unsigned. The transform converts the subtraction to a signed…
The task
The FIRRTL dialect canonicalizer mishandles `sub` when the left operand is constant zero, the right operand is unsigned, and the subtraction result is unsigned. The transform converts the subtraction to a signed negation, but reinterprets that intermediate value as `UInt` before widening it to the result width. The…
Part of henryen/OriGent-SFT-Data.