This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/24257] [4.1 Regression] ICE: in extract_insn, at recog.c:2084 with -O -fgcse -fgcse-sm



------- Comment #5 from uros at kss-loka dot si  2005-10-11 08:55 -------
(In reply to comment #4)
>
> gcse-sm blindly converted valid insn pattern into unrecognized insn pattern.

  The problem is in gcse.c, function replace_store_insn(), line 6294:

6293  mem = smexpr->pattern;
6294  insn = gen_move_insn (reg, SET_SRC (single_set (del)));
6295  insn = emit_insn_after (insn, del);

This code does not handle parallels and replaces only destination of an insn
pattern. "ashlsi3" pattern, as defined in i386.md also requires operand 0 and
operand 1 to match (via ix86_expand_binary_operator ()).


-- 

uros at kss-loka dot si changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uros at kss-loka dot si


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24257


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]