This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

powerpc assembly problem



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]