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]

optimization/7134: Athlon: ICE in extract_insn, at recog.c:2130


>Number:         7134
>Category:       optimization
>Synopsis:       Athlon: ICE in extract_insn, at recog.c:2130
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 26 08:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Volker Reichelt
>Release:        gcc 3.2 20020617
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
The following code causes an ICE when compiled with
"gcc -march=athlon -O -c":

--------------------------snip here----------------------
void foo ()
{
  int i, n;

  for ( i=0; i<n; ++i )
    i=n^128;
}
--------------------------snip here----------------------

The error message is:

bug.c: In function `foo':
bug.c:7: error: unrecognizable insn:
(insn 53 57 54 1 (nil) (parallel [
            (set (strict_low_part (reg:QI 0 al [58]))
                (xor:QI (reg:QI 0 al [58])
                    (const_int -128 [0xffffff80])))
            (clobber (reg:CC 17 flags))
        ]) -1 (insn_list 57 (nil))
    (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))
bug.c:7: internal compiler error: Internal compiler error in extract_insn, at recog.c:2130
Please submit a full bug report, [etc.]

The example compiles fine with gcc 3.1.

The example was created from a file (psout.i) from a
bug report of Sergei Pachkov (see PR 7063).
>How-To-Repeat:
gcc -march=athlon -O -c bug.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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