Repair a verified behavior in clash-lang/clash-compiler.
Repair a verified behavior in clash-lang/clash-compiler.: a task in OriGent-RL-Data (Harbor dataset). The Clash Verilog backend emits incorrect HDL for width-changing integer conversions of Signed values: it zero-extends where it must sign-extend. When toInteger, fromEnum, or toEnum converts a…
The task
The Clash Verilog backend emits incorrect HDL for width-changing integer conversions of Signed values: it zero-extends where it must sign-extend. When toInteger, fromEnum, or toEnum converts a Signed value into a wider representation, the generated Verilog fills the upper bits with zeros, so every negative Signed…
Part of henryen/OriGent-RL-Data.