public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: bangerth@dealii.org
To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	kfredrik@cs.joensuu.fi, nobody@gcc.gnu.org
Subject: Re: target/9401: [x86] ICE with MMX/SSE codes
Date: Wed, 22 Jan 2003 15:30:00 -0000	[thread overview]
Message-ID: <20030122153021.9382.qmail@sources.redhat.com> (raw)

Old Synopsis: g++ 3.1 and above produce internal compiler error when using built-in vector intrinsics
New Synopsis: [x86] ICE with MMX/SSE codes

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 22 15:30:21 2003
State-Changed-Why:
    Confirmed. Here's a small testcase:
    ------------------------
    typedef int v4sf __attribute__ ((mode(V4SF)));
    
    struct X {
        X() {}
        X(int);
        int foo() { return *(int *)&x; }
        v4sf x;
    };
    
    void bar() {
      X x;
      int i, r, b;
      for(r=0; r<b; r++)
        x = x.foo();
    }
    --------------------------
    
    This ICEs 3.2, 3.3, and 3.4 alike:
    
    g/a> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -msse -O3 x.cc
    x.cc: In function `void bar()':
    x.cc:15: error: unable to find a register to spill in class `GENERAL_REGS'
    x.cc:15: error: this is the insn:
    (insn:HI 56 87 62 2 0x401b8a7c (set (reg/v:SI 0 eax [67])
            (subreg:SI (reg/v:V4SF 21 exmm0 [59]) 0)) 45 {*movsi_1} (nil)
        (expr_list:REG_EQUIV (mem/f:SI (plus:SI (reg/f:SI 7 esp)
                    (const_int 4 [0x4])) [0 S4 A32])
            (expr_list:REG_DEAD (reg/v:V4SF 21 exmm0 [59])
                (nil))))
    x.cc:15: internal compiler error: in spill_failure, at reload1.c:1924
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    
    g/a> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -msse -O3 x.cc
    x.cc: In function `void bar()':
    x.cc:15: error: unable to find a register to spill in class `GENERAL_REGS'
    x.cc:15: error: this is the insn:
    (insn:HI 55 85 61 2 0x401d70b0 (set (reg/v:SI 0 eax [67])
            (subreg:SI (reg/v:V4SF 21 exmm0 [59]) 0)) 38 {*movsi_1} (nil)
        (expr_list:REG_EQUIV (mem/f:SI (plus:SI (reg/f:SI 7 esp)
                    (const_int 4 [0x4])) [0 S4 A32])
            (expr_list:REG_DEAD (reg/v:V4SF 21 exmm0 [59])
                (nil))))
    x.cc:15: internal compiler error: in spill_failure, at reload1.c:1920
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    
    g/a> /home/bangerth/bin/gcc-3.2.2-pre/bin/gcc -msse -O3 x.cc
    x.cc: In function `void bar()':
    x.cc:15: Internal compiler error in gen_reg_rtx, at emit-rtl.c:662
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9401


             reply	other threads:[~2003-01-22 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22 15:30 bangerth [this message]
2003-05-10  5:56 Dara Hazeghi
2003-05-12  8:36 Kimmo Fredriksson
2003-05-12  9:26 Dara Hazeghi
2003-05-12 11:46 giovannibajo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030122153021.9382.qmail@sources.redhat.com \
    --to=bangerth@dealii.org \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=kfredrik@cs.joensuu.fi \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).