public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: "Matt" <tesseract@directvinternet.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: inline-asm/9181: Compiler crashes on inline assembly with internal error
Date: Mon, 06 Jan 2003 18:46:00 -0000	[thread overview]
Message-ID: <20030106184613.21496.qmail@sources.redhat.com> (raw)

The following reply was made to PR inline-asm/9181; it has been noted by GNATS.

From: "Matt" <tesseract@directvinternet.com>
To: <ehrhardt@mathematik.uni-ulm.de>,
	<gcc-bugs@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<mtaylor@fit.edu>,
	<nobody@gcc.gnu.org>,
	<gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: inline-asm/9181: Compiler crashes on inline assembly with internal error
Date: Mon, 6 Jan 2003 13:41:03 -0500

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0043_01C2B589.41D52570
 Content-Type: text/plain;
 	charset="Windows-1252"
 Content-Transfer-Encoding: 7bit
 
 I didn't submit preprocessed code because there is nothing to preprocess. I
 have attached the preprocessed file along with the error message from gcc.
 
 The bug is actually my error. You may notice that, for an output register, I
 assign "=%al". My fix should be revised as I managed later to crash g++ with
 similar code.
 
 -Matt
 
 > Synopsis: Compiler crashes on inline assembly with internal error
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: cae
 > State-Changed-When: Mon Jan  6 05:23:32 2003
 > State-Changed-Why:
 >     The preprocessed source is missing. Please send it to me in private
 >     so that I can attach it to the Problem report.
 >
 >
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=9181
 
 ------=_NextPart_000_0043_01C2B589.41D52570
 Content-Type: application/octet-stream;
 	name="lsb.out"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="lsb.out"
 
 # 1 "lsb.c"
 # 1 "<built-in>"
 # 1 "<command line>"
 # 1 "lsb.c"
 int get_lsb(long long bb)
 {
         int index;
 
         asm("pushl	%%esi\n\t"
             "movl	(%%edx), %%esi\n\t"
             "xorl	%%eax, %%eax\n\t"
 
             "movl	4(%%edx), %%ecx\n\t"
             "testl	%%esi, %%esi\n\t"
 
             "cmovzl	%%ecx, %%esi\n\t"
             "pushl	%%ebx\n\t"
             "setzb	%%al\n\t"
             "movl	%%esi, %%ecx\n\t"
             "negl	%%esi\n\t"
 
             "andl	%%ecx, %%esi\n\t"
             "xorl	%%ecx, %%ecx\n\t"
             "xorl	%%esi, (%%edx,%%eax,4)\n\t"
 
             "xorl	%%ebx, %%ebx\n\t"
             "xorl	%%edx, %%edx\n\t"
             "testl	$0xFFFF0000, %%esi\n\t"
 
             "setnzb	%%bl\n\t"
             "testl	$0xFF00FF00, %%esi\n\t"
 
             "leal	(%%ebx,%%eax,2), %%ebx\n\t"
             "setnzb	%%cl\n\t"
             "testl	$0xF0F0F0F0, %%esi\n\t"
 
             "setnzb	%%dl\n\t"
             "shlb	$3, %%cl\n\t"
             "testl	0xCCCCCCCC, %%esi\n\t"
 
             "leal	(%%ecx,%%edx,4), %%edx\n\t"
             "setnzb	%%al\n\t"
             "testl	$0xAAAAAAAA, %%esi\n\t"
 
             "setnzb	%%cl\n\t"
             "shlb	$4, %%bl\n\t"
             "addb	%%al, %%al\n\t"
 
             "orb	%%cl, %%al\n\t"
             "orb	%%bl, %%dl\n\t"
             "movl	(%%esp), %%ebx\n\t"
 
             "movl	4(%%esp),%%esi\n\t"
             "orb	%%dl, %%al\n\t"
             "addl	$8, %%esp"
             : "=%al" (index)
             : "d" (&bb)
             : "%ecx");
 
         return index;
 }
 
 ------=_NextPart_000_0043_01C2B589.41D52570
 Content-Type: text/plain;
 	name="error.txt"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="error.txt"
 
 $ gcc -c lsb.c
 lsb.c: In function `get_lsb':
 lsb.c:57: Internal compiler error in instantiate_virtual_regs_1, at =
 function.c:3974
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
 ------=_NextPart_000_0043_01C2B589.41D52570--
 


             reply	other threads:[~2003-01-06 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-06 18:46 Matt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-07  9:32 ehrhardt
2003-01-06 13:23 ehrhardt

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=20030106184613.21496.qmail@sources.redhat.com \
    --to=tesseract@directvinternet.com \
    --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).