https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115142
--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> --- So just one high level note. Nobody is ever going to do something like "-ftree-ter" without having one of the optimization levels on. It's an option combination that just doesn't make sense. But we still shouldn't trigger aborts, ICEs and such. I think this is a minor bug in the mem_shadd_or_shadd_rtx_p function. It probably should be verifying that the value being shifted is a REG. Testing a fix.