This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24257] [4.1 Regression] ICE: in extract_insn, at recog.c:2084 with -O -fgcse -fgcse-sm
- From: "uros at kss-loka dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2005 08:55:35 -0000
- Subject: [Bug target/24257] [4.1 Regression] ICE: in extract_insn, at recog.c:2084 with -O -fgcse -fgcse-sm
- References: <bug-24257-8707@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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