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]

[committed] Use HARD_REGISTER_* for mips



I know we check regno < FIRST_PSEUDO_REGISTER almost everywhere but I'm kinda hoping to convince people that the HARD_REGISTER_P and HARD_REGISTER_NUM_P checks are more readable... ;-)

Good idea. Here's the mips port done. The remaining uses of FIRST_PSEUDO_REGISTER are all in loops.


Tested on mipsisa64-elf and committed.

-eric

2007-01-01 Eric Christopher <echristo@apple.com>

        * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
        HARD_REGISTER_NUM_P

Attachment: mips.diff.txt
Description: Text document


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