From: Jeffrey A Law <law@cygnus.com>
To: Sumner Reuben <rasumner@wisdom.weizmann.ac.il>
Cc: egcs@cygnus.com
Subject: Re: egcs 1.0.2 success and problem
Date: Sat, 31 Oct 1998 05:02:00 -0000 [thread overview]
Message-ID: <9012.909826854@hurl.cygnus.com> (raw)
In-Reply-To: <199804052121.AAA00146@hadar.wisdom.weizmann.ac.il>
In message <199804052121.AAA00146@hadar.wisdom.weizmann.ac.il>you write:
> I successfully compiled egcs 1.0.2 on RedHat 5.0 (no surprise I'm sure)
> I haven't included config.guess if you want it just ask.
>
> I noticed an optimization problem with gcc 2.7.2 and it is still present
> in egcs 1.0.2 (I specifically wanted to test this problem). I have pared
> down the sources a fair bit, if I need to do more I will try.
I believe if you try the current sources in the egcs CVS tree you'll find that
the second (and more important) loop in your testcase is optimized noticably
better now.
Here's what you were getting:
> .L11:
> movl 8(%ebp),%edx
> movl (%edx),%edx
> movl %edx,%eax
> xorl %edx,%edx
> movl %eax,-16(%ebp)
> movl %edx,-12(%ebp)
> movl 8(%ebp),%edx
> movl 4(%edx),%esi
> movl 12(%edx),%ebx
> movl 12(%ebp),%eax
> movl (%ebx,%esi,4),%ecx
> mull %ecx
> movl %eax,-8(%ebp)
> movl %edx,-4(%ebp)
> pushl -12(%ebp)
> pushl -16(%ebp)
> pushl -4(%ebp)
> pushl -8(%ebp)
> call __umoddi3
> movl %eax,-16(%ebp)
> movl %edx,-12(%ebp)
> addl $16,%esp
> movl -16(%ebp),%edx
> movl 8(%ebp),%eax
> incl %edi
> movl %edx,(%ebx,%esi,4)
> cmpl %edi,4(%eax)
> ja .L11
Here's what I get with the current sources:
.L11:
movl -4(%ebp),%ebx
movl 12(%ebp),%eax
movl (%ebx,%edi,4),%ecx
mull %ecx
movl 8(%ebp),%ecx
movl %eax,-12(%ebp)
movl %edx,-8(%ebp)
movl (%ecx),%eax
xorl %edx,%edx
pushl %edx
pushl %eax
movl -12(%ebp),%eax
movl -8(%ebp),%edx
pushl %edx
pushl %eax
call __umoddi3
movl 8(%ebp),%edx
addl $16,%esp
movl %eax,(%ebx,%edi,4)
incl %esi
movl 4(%edx),%eax
movl %eax,%edi
cmpl %edi,%esi
jb .L11
prev parent reply other threads:[~1998-10-31 5:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-05 21:29 Sumner Reuben
1998-10-31 5:02 ` Jeffrey A Law [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=9012.909826854@hurl.cygnus.com \
--to=law@cygnus.com \
--cc=egcs@cygnus.com \
--cc=rasumner@wisdom.weizmann.ac.il \
/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).