powerpc assembly problem

Dan Kegel dank@kegel.com
Thu Jul 14 00:58:00 GMT 2005


Eric Olsen wrote:
> I'm using binutils 2.15, gcc 3.3.4.  When assembling the following, ...
> 
>     /* Relocate galileo's regs */
>     lwi    r25,(GT64260_INTERNAL_SPACE_DEFAULT_ADDR+GT64260_INTERNAL_SPACE_DECODE)
> 
> 
> Using -E, I see that this this preprocess to:
> 
>        # Load immediate word, has to be done with 2 instructions
>        .macro lwi reg,val
>        lis \reg,\val@H
>        ori \reg,\reg,\val@L
>        .endm
> 
>        .globl pumadn1_init
> pumadn1_init:
>        li 20,0
>        li 23,20
> 
> 
>        lwi 25,(0x80000000 +0x0068)
> 
> When I change  lwi 25,(0x80000000 +0x0068) to lwi 25,(0x80000000+0x0068)
> (that is, I remove the space before the + sign), it assembles.
> 
> Maybe the cpp should not add the space, and as should be okay with it.

You might want to ask on the binutils or gcc mailing lists
if you don't get an answer here...
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list