Adding New Registers
Hasdi R Hashim
hasdi@umich.edu
Fri Feb 13 10:31:00 GMT 1998
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
More information about the Gcc
mailing list