HF RL Explorer

Repair a verified behavior in llvm/circt.

Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). FIRRTL-to-hardware lowering mishandles operand widening for firrtl.neg . When a UInt<2 input is negated into a SInt<3 result, the lowering sign-extends the unsigned input before computing zero-minus-input. For…

The task

FIRRTL-to-hardware lowering mishandles operand widening for `firrtl.neg`. When a `UInt<2>` input is negated into a `SInt<3>` result, the lowering sign-extends the unsigned input before computing zero-minus-input. For example, an input value of `2'b10` produces `3'b010`, even though the negation should produce `3'b110`.

Part of henryen/OriGent-SFT-Data.