Attached testcase when compiled by gcc version 4.2.0 20051217 (experimental) on x86 using:
----------------- gcc -O2 -fmove-loop-invariants -c -o mpegaudiodec.o mpegaudiodec.c ----------------- results in the following ----------------- mpegaudiodec.c: In function ‘decode_init’: mpegaudiodec.c:510: error: unrecognizable insn: (insn:HI 1144 718 1309 70 (set (reg:SI 507) (fix:SI (reg:DF 506))) -1 (insn_list:REG_DEP_TRUE 718 (nil)) (expr_list:REG_DEAD (reg:DF 506) (nil))) mpegaudiodec.c:510: internal compiler error: in extract_insn, at recog.c:2084 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. ----------------- Works on x86_64. -- Summary: ICE on valid code with -O2 -fmove-loop-invariants Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: drab at kepler dot fjfi dot cvut dot cz GCC target triplet: i?86-pc-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25483