public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: optimization/6162: gcc 3.0.4: certain i386 asm reloader ice
Date: Fri, 02 Aug 2002 16:06:00 -0000	[thread overview]
Message-ID: <20020802230601.21212.qmail@sources.redhat.com> (raw)

The following reply was made to PR optimization/6162; it has been noted by GNATS.

From: Kevin Ryde <user42@zip.com.au>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: optimization/6162: gcc 3.0.4: certain i386 asm reloader ice
Date: Sat, 03 Aug 2002 08:57:10 +1000

 --=-=-=
 
 I struck another reloader ice, which to my untrained eye looks the
 same as the one in this bug I submitted before, but with the advantage
 of happening on a much smaller and simpler input.
 
 
 --=-=-=
 Content-Type: text/x-csrc
 Content-Disposition: attachment; filename=bar.c
 
 void
 foo (unsigned *wp, unsigned *xp, unsigned *yp, long size)
 {
   unsigned w3, w2, w1, w0, hi, z;
 
   __asm__ ("mull %3"
            : "=a" (w2), "=d" (w3)
            : "%0" (xp[1]), "rm" (yp[1]));
 
   __asm__ ("mull %3"
            : "=a" (w1), "=d" (hi)
            : "%0" (xp[0]), "rm" (yp[1]));
 
   __asm__ ("addl %5,%1\n"
            "adcl %3,%0"
            : "=r"  (z),
              "=&r" (w0)
            : "%0"  (w2),
              "g"   (hi),
              "%1"  (w1),
              "g"   (0));
 
   w3 += (z < w2);
   wp[2] = z;
   wp[3] = w3;
 }
 
 --=-=-=
 Content-Disposition: attachment; filename=bar.out
 
 gcc-3.1 -O -c bar.c
 bar.c: In function `foo':
 bar.c:26: unrecognizable insn:
 (insn 25 23 27 (parallel[ 
             (set (reg/v:SI 1 edx [67])
                 (asm_operands:SI ("addl %5,%1
 adcl %3,%0") ("=r") 0[ 
                         (reg/v:SI 2 ecx [63])
                         (reg/v:SI 1 edx [66])
                         (reg/v:SI 0 eax [64])
                         (const_int 0 [0x0])
                     ] 
                     [ 
                         (asm_input:SI ("%0"))
                         (asm_input:SI ("g"))
                         (asm_input:SI ("%1"))
                         (asm_input:SI ("g"))
                     ]  ("bar.c") 14))
             (set (reg/v:SI 0 eax [65])
                 (asm_operands:SI ("addl %5,%1
 adcl %3,%0") ("=&r") 1[ 
                         (reg/v:SI 2 ecx [63])
                         (reg/v:SI 1 edx [66])
                         (reg/v:SI 0 eax [64])
                         (const_int 0 [0x0])
                     ] 
                     [ 
                         (asm_input:SI ("%0"))
                         (asm_input:SI ("g"))
                         (asm_input:SI ("%1"))
                         (asm_input:SI ("g"))
                     ]  ("bar.c") 14))
             (clobber (reg:QI 19 dirflag))
             (clobber (reg:QI 18 fpsr))
             (clobber (reg:QI 17 flags))
         ] ) -1 (insn_list 19 (insn_list 23 (insn_list 23 (nil))))
     (nil))
 bar.c:26: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8369
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
 m: *** [bar.o] Error 1
 
 --=-=-=--


             reply	other threads:[~2002-08-02 23:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-02 16:06 Kevin Ryde [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-01 13:46 Kevin Ryde
2002-10-31 10:26 Joe Buck
2002-10-30 15:06 Michael Matz
2002-10-30 14:56 Torbjorn Granlund
2002-10-30 14:46 Michael Matz
2002-10-30 14:26 Kevin Ryde
2002-10-30 14:16 Michael Matz
2002-10-30 13:36 Kevin Ryde
2002-10-30 12:36 Nathanael Nerode
2002-10-24 22:46 Andreas Jaeger
2002-10-24 22:39 aj
2002-10-24 17:06 Kevin Ryde
2002-10-10 11:06 hubicka
2002-04-03 16:26 Kevin Ryde

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=20020802230601.21212.qmail@sources.redhat.com \
    --to=user42@zip.com.au \
    --cc=gcc-prs@gcc.gnu.org \
    --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).