This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Adding New Registers
- To: egcs at cygnus dot com
- Subject: Adding New Registers
- From: Hasdi R Hashim <hasdi at umich dot edu>
- Date: Fri, 13 Feb 1998 11:54:26 +0000 (GMT)
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