powerpc assembly problem
Eric Olsen
eo99@hotmail.com
Thu Jul 14 00:39:00 GMT 2005
I'm using binutils 2.15, gcc 3.3.4. When assembling the following, I get an
error:
.macro lwi reg,val
lis \reg,\val@H
ori \reg,\reg,\val@L
.endm
.globl pumadn1_init
pumadn1_init:
li r20,0
li r23,20
/* 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.
Anybody else see this?
--
eo99@hotmail.net
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
------
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