https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81673
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What happens if you use -march=intel. Maybe the cost should have adjusted only for the case where moving between the register set is cheap (I forgot the internal tuning name for this case).