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: [PATCH 1/2] PowerPC: Change `z' constraint to mean XER[CA] instead of XER


       * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
      * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
      throughout.
      * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
      "xer" to "ca".
      Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
      XER_REGS to CA_REGS throughout.
      * config/rs6000/rs6000.h: Same.
      (ADDITIONAL_REGISTER_NAMES): Add "xer".
      * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
      that mode_iterator "P" is the size for arithmetic carries as well.
      * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.

Okay.

The comment in REG_ALLOC_ORDER mentions that XER (now CA) is fixed.  I
assume that a later patch updates FIXED_REGISTERS,
CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS, etc. and updates the
comment?

Thanks, David


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