Liu <pro...@gmail.com> writes: > I need add 256bits-register support for our MIPS-based > processor, so I add some codes. > When I build gcc and test it, get a error "unable to find a > register to spill in class 'XX_REGS'" > can you tell me how to add 256bits register file to a MIPS port? > > Thanks! > > codes: > gcc/config/mips/constraints.md : > (define_register_constraint 'Z' 'XX_REGS' > '@internal') > > gcc/config/mips/mips-ftypes.def : > DEF_MIPS_FTYPE (2, (UV32QI, UV32QI, UV32QI)) > DEF_MIPS_FTYPE (2, (V32QI, V32QI, V32QI)) > > gcc/config/mips/mips.h : > #define FIXED_REGISTERS > /* XX regusters */ \ > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \ > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 \
Setting them all as 1 in FIXED_REGISTERS means that gcc can't use them. Ian