--- "Garst R. Reese" <[email protected]> wrote:

> Andre Sodermans wrote:
> 
> ><snip>
> >  
> >
> >>The chain seems to start in:
> >>
> >>... gcc/gcc-x.x/gcc/config/msp430
> >>search for --mulsi and --muldi
> >>I use gcc-3.3
> >>Obviously mspgcc is doing a lot more than I expected of it ;)
> >>Good luck,
> >>
> >>  Garst
> >>    
> >>
> >
> >You're right, the code has been in there since gcc-3.3. For some
> reason
> >I assumed that the latest windoze installer would have the latest
> gcc
> >in it.
> >The one I have installed (20041112) contains gcc v3.2.3, so that
> >explains why the 32x32=64 isn't in there. I looked at the libgcc.S
> file
> >in version gcc-3.3 and that one contains the full 32x32=64 with hw
> >multiply.
> >
> >Do you know where I can download a prebuilt binary based on gcc-3.3
> or later?
> >
> When I said I used gcc-3.3, I was referring to the mspgcc
> subdirectory, 
> which is what actually works with gcc-3.2.3. This historical accident
> 
> has confused many. My version of msp430-gcc is in fact gcc-3.2.3, so
> you 
> really should have the 32x32=64 functionality, but you probably need
> to 
> call the functions instead of using c = (int64_t) a*b. At least that
> is 
> how I  understood dmitry's response.
> 
> 
> >[ga...@localhost gcc-3.3]$ ls
> >config.sub  gcc-3.2.3-cygwin.patch
> >CVS        
> THIS_ACTUALLY_WORKS_WITH_VERSION_3_2_AND_BELOW_2002_09_02
> >
> >  
> >
> Garst
> 
Ok, I now understand the versioning issue, however it seems that the
code then has been compiled incorrectly because the actual stream that
gets generated is the one with the following compile time conditional:
  #if defined(L_muldi3) && !defined(MSP430_HAS_HWMUL)

If you look further down, the correct stream is inside the following
conditional:
  #if defined(L_muldi3) && defined(MSP430_HAS_HWMUL)

I am 100% sure that I used the -mforce-hwmul, so why is this happening?

Even if I would call the routine, it would still go to the wrong one.

-Andre


  

 
 



                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

Reply via email to