From: Eric Christopher <echristo@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Alexandre Oliva <aoliva@redhat.com>, binutils@sources.redhat.com
Subject: Re: MIPS assembler branch relaxations
Date: Sat, 14 Sep 2002 14:46:00 -0000 [thread overview]
Message-ID: <1032027636.1612.3.camel@ghostwheel> (raw)
In-Reply-To: <20020914151121.GA7853@nevyn.them.org>
> + Even though keeping the delay slot instruction in the delay slot of
> + the branch would be more efficient, it would be very tricky to do
> + correctly, because we'd have to introduce a variable frag *after*
> + the delay slot instruction, and expand that instead. Let's do it
> + the easy way for now, even if the branch-not-taken case now costs
> + one additional instruction. Out-of-range branches are not supposed
> + to be common, anyway.
>
>
> If this goes in as-is, I doubt that it'll ever be done the right way.
> My cynicism speaking.
>
It's a good comment, however, a couple of other comments:
1) If this bites assembler programmers then they screwed themselves.
2) gcc is going towards .set nomacro, so, hopefully this is just
temporary.
>
> The above aren't really objections, mind - I agree that performance of
> this isn't important. Just observations.
>
>
> More importantly, because the performance of this is not important or
> particularly good, it's important to avoid it. When will it trigger?
> Does it require -relax? [Not sure.] Does it happen inside .set
> nomacro? [I think so - should it? I'd say not!] I think there should
> be a command-line option to disable this, and/or warn about it. Most
> out-of-range branches represent bugs in GCC's calculations of
> instruction lengths. I know there are some in 3.2, because I've run
> into them. I don't know if they're fixed in HEAD, and if this goes in
> I may never find out.
>
1) None of the other relaxations require a command line.
2) always.
3) no
4) shouldn't - good catch.
5) not always, macros are partially to blame.
6) you and i had a conversation about this very thing yesterday :)
Anyhow, if 4 is I'm pretty happy with it going in.
-eric
--
Yuppies wear socks.
next prev parent reply other threads:[~2002-09-14 18:21 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-14 4:49 Alexandre Oliva
2002-09-14 14:28 ` Daniel Jacobowitz
2002-09-14 14:46 ` Eric Christopher [this message]
2002-09-14 21:33 ` Daniel Jacobowitz
2002-09-14 21:33 ` Eric Christopher
2002-09-14 15:00 ` Paul Koning
2002-09-14 16:35 ` Daniel Jacobowitz
2002-09-14 18:43 ` Paul Koning
2002-09-14 21:39 ` Thiemo Seufer
2002-09-14 22:18 ` Alexandre Oliva
2002-09-15 2:25 ` Thiemo Seufer
2002-09-15 3:38 ` Alexandre Oliva
2002-09-15 0:49 ` Alexandre Oliva
2002-09-15 9:15 ` Daniel Jacobowitz
2002-09-16 11:56 ` Richard Henderson
2002-09-17 0:09 ` Alexandre Oliva
2002-09-17 0:26 ` Richard Henderson
2002-09-17 0:38 ` Thiemo Seufer
2002-10-09 16:51 ` Alexandre Oliva
2002-10-09 16:54 ` Alexandre Oliva
2002-10-09 17:17 ` H. J. Lu
2002-10-11 13:08 ` Eric Christopher
2002-09-14 14:39 ` H. J. Lu
2002-09-14 23:12 ` Alexandre Oliva
2002-09-15 9:13 ` H. J. Lu
2002-09-15 15:32 ` Eric Christopher
2002-09-15 16:53 ` H. J. Lu
2002-09-15 1:00 ` Alexandre Oliva
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=1032027636.1612.3.camel@ghostwheel \
--to=echristo@redhat.com \
--cc=aoliva@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=drow@mvista.com \
/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).