On 06/17/2011 02:20 AM, Georg-Johann Lay wrote:
> Richard Henderson schrieb:
>> On 06/15/2011 02:47 AM, Georg-Johann Lay wrote:
>>> +#if defined (L_loop_ffsqi2)
>>> +;; Helper for ffshi2, ffssi2
>>> +;; r25:r24 = r26 + zero_extend16 (ffs8(r24))
>>> +;; r24 must be != 0
>>> +;; clobbers: r26
>>> +DEFUN __loop_ffsqi2
>>
>> Why does this function have "loop" in its name?  The actual
>> implementation is surely irrelevant.
> 
> hmmm. I needed some global name that can be referenced from __ffshi2
> resp. __ffssi2. The function in itself is not very helpful as stand
> alone. You prefer some other naming for such global helpers?

__ffsqi_nz perhaps?

> The following instruction is BRNE, a conditional branch.

Oops, missed that, sorry.

> Yes, you are right. Following patchlet ok?
> 
> Johann
> 
> 
>       * config/avr/libgcc.S (__ctzsi2, __ctzhi2):
>       Map zero to 255.

You'd also delete the COUNT_LEADING_ZEROS_0 definition in longlong.h.


r~

Reply via email to