https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103302
--- Comment #11 from Jim Wilson <wilson at gcc dot gnu.org> --- FYI I have a patch to re-add the movti pattern to riscv.md which should also fix this and another bug. Kito removed the pattern in 2016 and I was hoping to get an answer from him about why he removed it. The RISC-V Summit is this week so not much development work happening this week from RISC-V developers. And in general I've been in transition away from SiFive and not getting much done.