https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103722
Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-01-05 CC| |law at gcc dot gnu.org --- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> --- I'll confirm. My tester is seeing the same failure building the linux kernel on sh4/sh4eb and was bisected to the same commit. Isn't a move cost 2 special to the old reload pass, causing it to avoid various checks on simple move insns? If so, wouldn't returning any other value be helpful, and something closer to 2 than 7 would perturb the generated code less? Regardless, I'd approve the patch as-is if you submit it.