https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620
--- Comment #6 from Chen Gang <gang.chen.5i5j at gmail dot com> --- 1st call in hwloop_optimize() in gcc/config/bfin/bfin.c, the input insns are correct (just the same as insns-should_be.log), but the output insns are incorrect (just the same as insns-issue.log). Then 2nd call in hwloop_optimize() in gcc/config/bfin/bfin.c finds this issue, then cause assert().