https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84123
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Segher Boessenkool from comment #2) > That looks good, please send the patch! > > What about the third case? The first in the "if" tree. Does that need > this as well? (The third and last case already has a similar check). Yes, it also calls gen_lowpart_SUBREG without checking. This will result in the ICE for the reasons, discussed in Comment #1. I can add the same cure here, although it won't make difference in this particular testcase.