Re: RFA; MN10300: Fix AM33 clzsi2 pattern

2011-06-27 Thread Richard Henderson
On 06/25/2011 09:29 PM, Nick Clifton wrote: > * mn10300.md (clzsi2): Use XOR after BSCH to convert bit position > of highest bit set into a count of the high zero bits. Ok. r~

Re: RFA; MN10300: Fix AM33 clzsi2 pattern

2011-06-25 Thread Nick Clifton
Hi Richard, The clzsi2/bsch patterns in the MN10300 backend do not work. There are two problems - firstly the starting bit-search position for the BSCH instruction is not set. Yes it is. What do you think that "unused" second operand does? That actually works ? Gross! Secondly

Re: RFA; MN10300: Fix AM33 clzsi2 pattern

2011-06-25 Thread Richard Henderson
On 06/25/2011 01:18 AM, Nick Clifton wrote: > Hi Alex, Hi Jeff, Hi Richard, > > The clzsi2/bsch patterns in the MN10300 backend do not work. There > are two problems - firstly the starting bit-search position for the > BSCH instruction is not set. Yes it is. What do you think that "unuse

RFA; MN10300: Fix AM33 clzsi2 pattern

2011-06-25 Thread Nick Clifton
Hi Alex, Hi Jeff, Hi Richard, The clzsi2/bsch patterns in the MN10300 backend do not work. There are two problems - firstly the starting bit-search position for the BSCH instruction is not set. Secondly the BSCH instruction returns the bit position of the highest set bit, not the number