lkml.org 
[lkml]   [2000]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: __ucmpdi2
From
Matti Aarnio <matti.aarnio@zmailer.org> writes:

|> On Tue, Sep 19, 2000 at 02:58:01AM -0700, Jeremy Higdon wrote:
|> > Hello,
|> >
|> > I'm using a 64 bit variable in a switch statement. Gcc is generating code
|> > which make calls to __ucmpdi2, a function defined in libgcc. I figured
|> > out that it was the switch statement from examining the generated code.
|> >
|> > The question is whether I should change C code to avoid constructions
|> > which make calls to this routine (a little hard to determine a priori)
|> > or if there is an appropriate way to add this to the kernel.
|>
|> Yes do change it.
|>
|> Is the value-space for the case's a LONG LONG, or
|> mere set of INTs or LONGs ?

IMHO it's a bug in gcc that it does not inline the comparison inside the
switch expression, since it already does it in all other places. Perhaps
some problem with the patterns in the machine description.

Andreas.

--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.320 / U:0.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site