------- Comment #4 from rakdver at gcc dot gnu dot org 2006-02-12 17:36 ------- Could you please test the following patch?
Index: loop-invariant.c =================================================================== *** loop-invariant.c (revision 110850) --- loop-invariant.c (working copy) *************** find_invariant_insn (rtx insn, bool alwa *** 730,735 **** --- 731,742 ---- || find_reg_note (insn, REG_NO_CONFLICT, NULL_RTX)) return; + #if HAVE_cc0 + /* We can't move a CC0 setter without the user. */ + if (sets_cc0_p (insn)) + return; + #endif + set = single_set (insn); if (!set) return; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26232