This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bit twiddling builtins


On Thu, Jan 23, 2003 at 10:42:54PM +0100, Falk Hueffner wrote:
> I still can't manage to generate ffsdi. Should I perhaps add ffsl and
> ffsll while I'm at it?

Yes.  I thought those already existed.  Turns out they only
do in glibc, not gcc.

> That might confuse some backends, though,
> because they assume they'll only see ffs in SImode.

I don't see that.  We've already got the mode attached to the
pattern.  Should be ok as-is.

> ARM already has a __builtin_clz, that would need to be moved out of
> the way, too.

Right.

> When I add a pattern for clzdi to the Alpha backend, gcc will reduce
> clzsi to it via zero extension.

It will?   I can't think of why it would do this...  I guess I'll
try out your patch and see what happens.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]