Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL shr operation is currently rejected during canonicalization when a non-negative static shift amount is greater than the known width of its input. For example, canonicalizing firrtl.shr %input, 5 on a…
The task
The FIRRTL `shr` operation is currently rejected during canonicalization when a non-negative static shift amount is greater than the known width of its input. For example, canonicalizing `firrtl.shr %input, 5` on a known-width 4-bit input causes `circt-opt` to fail. Such a shift is valid: when the shift amount is…
Part of henryen/OriGent-SFT-Data.