From: James Morrison <ja2morri@csclub.uwaterloo.ca>
To: Eric Christopher <echristo@redhat.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Endless loop during bootstrap?
Date: Sun, 21 Mar 2004 05:25:00 -0000 [thread overview]
Message-ID: <kfhlllvkr4v.fsf@perpugilliam.csclub.uwaterloo.ca> (raw)
In-Reply-To: <1079825106.3809.1.camel@dzur.sfbay.redhat.com>
Eric Christopher <echristo@redhat.com> writes:
> > -o crtbegin.o
>
> This file definitely shouldn't take very long.
>
> >
> > Any ideas what needs to be fixed?
>
> Not offhand, but if you file a bug in bugzilla (gcc.gnu.org/bugzilla)
> I'm sure the sparc maintainer would want to look at it.
>
> -eric
>
> --
> Eric Christopher <echristo@redhat.com>
Alright. I'll dig out my bugzilla account and file a bug. Anyway,
It seems that the following code:
.LL1136:
.loc 1 1460 0
sra %i1, 31, %o3
.LLVL507:
srl %i1, 29, %g4
.LLVL508:
sll %o3, 3, %g1
sll %i1, 3, %o5
addcc %o5, %i1, %o5
or %g4, %g1, %o4
addx %o4, %o3, %o4
srl %o5, 28, %g4
sll %o4, 4, %g1
sll %o5, 4, %g3
or %g4, %g1, %g2
addcc %o5, %g3, %o5
addx %o4, %g2, %o4
srl %o5, 24, %g4
sll %o4, 8, %g1
sll %o5, 8, %g3
or %g4, %g1, %g2
addcc %o5, %g3, %o5
addx %o4, %g2, %o4
srl %o5, 16, %g4
sll %o4, 16, %g1
sll %o5, 16, %g3
addcc %o5, %g3, %o5
or %g4, %g1, %g2
addx %o4, %g2, %o4
subcc %g0, %o5, %o5
subx %g0, %o4, %o4
sra %o4, 2, %o4
.LLVL509:
.loc 1 1459 0
subcc %o4, %o3, %i1
.LLVL510:
bne .LL1136
add %l0, 1, %l0
.LL1108:
is supposed to divide by 10. However, when the input is 1 the result is
-1. Similarily when the input is -1 the result is 1. Thus the endless
loop.
Jim
prev parent reply other threads:[~2004-03-20 23:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-21 1:59 James Morrison
2004-03-21 2:42 ` Eric Christopher
2004-03-21 5:25 ` James Morrison [this message]
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=kfhlllvkr4v.fsf@perpugilliam.csclub.uwaterloo.ca \
--to=ja2morri@csclub.uwaterloo.ca \
--cc=echristo@redhat.com \
--cc=gcc@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).