Re: __sdivsi3_i4i and __udivsi3_i4i called for sh2 variant.

2013-03-05 Thread Yoshinori Sato
> > Uses a lookup table for divisors in the range -128 .. +128, and > > The code that you have enabled in lib1funcs.S will utilize dynamic shift > instructions, which are not available on SH1 or SH2. Maybe your target > HW is SH2A which has dynamic shift instructions and you haven't noticed >

Re: __sdivsi3_i4i and __udivsi3_i4i called for sh2 variant.

2013-03-04 Thread Oleg Endo
On Tue, 2013-03-05 at 00:15 +0100, Oleg Endo wrote: > Hi, > > On Mon, 2013-03-04 at 15:55 +0900, Yoshinori Sato wrote: > > It function called to divide operator. > > But libgcc.a is not include it helper functions. > > > > This patch is included those functions. > > > > diff -ru gcc-4.7.2.org/gc

Re: __sdivsi3_i4i and __udivsi3_i4i called for sh2 variant.

2013-03-04 Thread Oleg Endo
Hi, On Mon, 2013-03-04 at 15:55 +0900, Yoshinori Sato wrote: > It function called to divide operator. > But libgcc.a is not include it helper functions. > > This patch is included those functions. > > diff -ru gcc-4.7.2.org/gcc/config.gcc gcc-4.7.2/gcc/config.gcc > --- gcc-4.7.2.org/gcc/config.g