On Wed, Feb 05, 2025 at 10:11:27AM -0800, Palmer Dabbelt wrote: > Jeff would know way better than I do here, but I think this is just trying > to match addiw-type patterns and thus CONST_INT would be OK because we only > have 12-bit constants here.
The code looks at REG_EQUIV/REG_EQUAL notes, so it isn't restricted to what actual instructions can encode. Jakub