https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103722
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Joseph Myers <js...@gcc.gnu.org>: https://gcc.gnu.org/g:962e7f0803f163f9cf44d64a2e199935d3f361fe commit r12-8536-g962e7f0803f163f9cf44d64a2e199935d3f361fe Author: Vladimir Makarov <vmaka...@gcc.gnu.org> Date: Sat May 28 12:08:38 2022 -0600 Fix ICE on sh gcc/ PR target/103722 * config/sh/sh.cc (sh_register_move_cost): Avoid cost "2" (which is special) for various scenarios. (cherry picked from commit ce1580252ea57de23a595e9804ea87ed4353aa6a)