Solved :-) After removing the pushsi1 insn it complained for a missing insn so took the exact definition and recreated the push... Now it looks fine. On Tuesday 27 July 2010 19:16:41 Gabor Kerenyi wrote: > Hi All, > > I'm trying to write a new port for backend. Up to now I could figure out > this and that but now I've no clue. This is backend is only a warm up for > another project. The produced code will run inside a VM now. > > I have problem with function calls, more precisely argument passing. I > would like to pass all arguments on the stack. I defined the PUSH_ARGS and > the PUSH_ROUNDING. I have also a pushsi1 insn which takes all kind of > arguments. (the general design that all instructions and all arguments can > be immediate, memory, etc... > > But gcc does not generate any pushes... > I set up a FUNCTION_ARG also which returns 0 for all arguments. > > I see that it is called. I have no idea why the arguments are not pushed or > put on stack. > What kind of insns do I need to get it working? > > Thanks, > Gabor