This is the mail archive of the gcc@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: reduction of GP registers in MIPS backend


kernel coder wrote:
Would you please give a bit more explaination of "GPRs come in pairs"
and  where this assumption is being checked in function
override_options.

These two lines
else if (GP_REG_P (regno))
temp = ((regno & 1) == 0 || size <= UNITS_PER_WORD);
which say that any register can hold a value smaller or equal to the word size, and any even numbered register can hold a value larger than the word size. The latter implicitly assumes that the largest possible value is twice the word size, which is not quite correct, but good enough for now.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com



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