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]
Other format: [Raw text]

Re: HP-UX IA64 ILP32 patch


> On Fri, Jun 14, 2002 at 12:26:48PM -0700, Steve Ellcey wrote:
> > +   rtx scratch = operands[2];
> > +   if (!reload_completed)
> > +     gen_reg_rtx (ptr_mode);
> 
> Typo.

Is the typo that I used ptr_mode instead of Pmode?  Or something else?
I was looking at movdi_symbolic in ia64.md and I don't understand what
it currently has in it, the gen_reg_rtx() call isn't putting the
register it just generated anywhere.  Should it be "scratch =
gen_reg_rtx (Pmode);" instead of just "gen_reg_rtx (Pmode);" ?



>From current ia64.md:


(define_insn_and_split "movdi_symbolic"
  [(set (match_operand:DI 0 "register_operand" "=r")
        (match_operand:DI 1 "symbolic_operand" "s"))
   (clobber (match_scratch:DI 2 "=r"))
   (use (reg:DI 1))]
  ""
  "* abort ();"
  "!no_new_pseudos || reload_completed"
  [(const_int 0)]
{
  rtx scratch = operands[2];
  if (!reload_completed)
    gen_reg_rtx (Pmode);
  ia64_expand_load_address (operands[0], operands[1], scratch);
  DONE;
})


Steve Ellcey
sje@cup.hp.com


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