https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84757
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I hear that the RISCV folks are going to implementing subreg handling in RA for GCC 15, though I am not sure if that will fix this though but we will see.