This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Adding New Registers


Hello guys,

	I am in the middle of adding new special purpose registers to an
existing target architecture. It should be able to accept 8-byte
structure. I added a new register class and a new constraint characters,
'x'. I only accepts BLKmode but at this point it can accept any mode. I
modified the config/arch/arch.[ch] files but when assembling....

	struct { int x,y } blk1,blk2;
	asm("%0,%1" : "=x" (blk1) : "x" (blk1), "x" blk2);

...xgcc spits the following:

	../x.c: In function `xmain':
	../x.c:7: `asm' operand requires impossible reload

I can replace blk1/blk2 with "0" or "0.0" and get the same stuff.
Any ideas what I missed? TQ.

Hasdi






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