https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83699
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > The expmed.c patch is probably a pessimisation in this case. > extract_bit_field_as_Subreg should probably check that the > REGMODE_NATURAL_SIZE of the inner and outer modes are the same. > I'll do that as well, but we should probably fix the LRA > problem while it's visible. But then we wouldn't have caught the pessimization if there is one. In cases like this, I think that it's OK, if not better, to fix only the pessimization. Thanks for looking into this in any case.