public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Re: Loop unrolling and asm
       [not found] <199803100938.KAA18441@lslsun17.epfl.ch>
@ 1998-03-10  7:15 ` H.J. Lu
  1998-03-11 11:32   ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1998-03-10  7:15 UTC (permalink / raw)
  To: Christian Iseli; +Cc: egcs, gas2

> 
> Hi folks,
> 
> While trying out egcs-1.0.2-prerelease, I compiled the
> new XFree86-3.3.2 on a Linux 2.1.88 (RH 5.0) PPro box.
> binutils-2.8.(...).21 is installed.
> 
> I used -O2 -march=i686 -funroll-loops to compile XFree.
> I encountered a small problem where a loop containing asm
> was unrolled.  The asm included labels (.label00, .label01, ...)
> and the assembler died because of multiple definitions of
> the labels.
> 
> The problem, of course, went away when I recompiled the incriminated
> file without loop unrolling.
> 
> XFree seems to run fine.
> 
> Now the question: how do you go about including an asm with labels
> in a loop that will be unrolled?
> 

Use 0f, 1f, .... 9f, 0b, .... 9b instead of .label00 in asm. But
At one time, I needed more than 10 lables backward/forward. I had
to disable inline. I think it is limited by binutils. Can we change
binutils to accept more than 10 local lables? 


-- 
H.J. Lu (hjl@gnu.org)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Loop unrolling and asm
  1998-03-10  7:15 ` Loop unrolling and asm H.J. Lu
@ 1998-03-11 11:32   ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1998-03-11 11:32 UTC (permalink / raw)
  To: H.J. Lu; +Cc: egcs, gas2

On Tue, Mar 10, 1998 at 07:15:06AM -0800, H.J. Lu wrote:
> Use 0f, 1f, .... 9f, 0b, .... 9b instead of .label00 in asm. But
> At one time, I needed more than 10 lables backward/forward. I had
> to disable inline. I think it is limited by binutils. Can we change
> binutils to accept more than 10 local lables? 

You must not have tried it -- it has done so for a long long time.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-11 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199803100938.KAA18441@lslsun17.epfl.ch>
1998-03-10  7:15 ` Loop unrolling and asm H.J. Lu
1998-03-11 11:32   ` Richard Henderson

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).