Repair a verified behavior in yosyshq/yosys.
Repair a verified behavior in yosyshq/yosys.: a task in OriGent-RL-Data (Harbor dataset). The peepopt shiftmul-right rewrite for A (S C) , where C is a constant, is not equivalence-preserving when the width of A is not divisible by C . It rounds A up to a multiple of C with undefined-value bits…
The task
The `peepopt` shiftmul-right rewrite for `A >> (S * C)`, where `C` is a constant, is not equivalence-preserving when the width of `A` is not divisible by `C`. It rounds `A` up to a multiple of `C` with undefined-value bits while building the rewritten operand, but can fail to remove all of those bits before the…
Part of henryen/OriGent-RL-Data.