Re: Issue with hard regs

2006-10-17 Thread Nikolaos Kavvadias
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ian and fellow GCC'ers thanks for the info. Compiling "libgcc2.c" for MIPS (-mips1) works OK, I mean "divdi3" produces correct results. I'll get back to this in a couple of hours (at my home PC), but i think i had overseen something important her

Re: Issue with hard regs

2006-10-17 Thread Rask Ingemann Lambertsen
On Mon, Oct 16, 2006 at 02:03:44PM +0300, [EMAIL PROTECTED] wrote: > I thought i had added the necessary information (new register classes, > character > to match for the reg class) however i get the following error message: > > "unable to find a register to spill in class" Please provide mor

Re: Issue with hard regs

2006-10-16 Thread Ian Lance Taylor
[EMAIL PROTECTED] writes: > I'll have a look to mips_secondary_reload_class, however now i don't get > spilling/filling errors. I have a question: libgcc2.c is pretty stable, right? > I mean i shouldn't looking for something going wrong with it. Right, libgcc2.c is quite stable. In a normal buil

Re: Issue with hard regs

2006-10-16 Thread nkavv
Hi Ian > > > Can i disable filling/spilling for this register class? > > Sure: make the registers fixed. > > Or look at how the MIPS port handles HI and LO, with particular > reference to mips_secondary_reload_class. > > Ian what i'm trying to do is to code a backend for a "standard" DLX. Most th

Re: Issue with hard regs

2006-10-16 Thread Ian Lance Taylor
[EMAIL PROTECTED] writes: > i'm in the process of coding a GCC backend for a certain RISC-like > architecture. > Its register architecture consists of an integer register file (32 regs) and > two > additional hard regs that should be programmer visible. Accesses to these hard > regs are also emi

Issue with hard regs

2006-10-16 Thread nkavv
Hi there i'm in the process of coding a GCC backend for a certain RISC-like architecture. Its register architecture consists of an integer register file (32 regs) and two additional hard regs that should be programmer visible. Accesses to these hard regs are also emitted related to certain RTL pat