This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] gcc/config/h8300/h8300.md



  In message <41ECF07CC183D111A6F800805FEDAB190CE636@EXCHANGE1>you write:
  > Hi Jeff,
  > 
  > > Hmmm, I didn't think caller-save used push/pop insns to save/restore
  > > registers around calls.  I thought it used simple stores.
  > > 
  > > I'd be very surprised if this change was useful for caller-saves.  Can
  > > you show me precisely how we're getting "push" instructions instead of
  > > "mov" instructions.
  > 
  > /* h8300-hms-gcc -ms -O2 -fomit-frame-pointer */
  > typedef long elm;
[ ... ]
Thanks.

As expected this has _nothing_ to do with caller-save.  The instructions
you point out are argument pushes.

I would recommend you look into the load_multiple and store_multiple patterns
and see if they can be used to do what you want.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]