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] - Use of powerpc 64bit instructions in 32bit ABI



On Tuesday, October 14, 2003, at 03:16 PM, Richard Henderson wrote:


On Tue, Oct 14, 2003 at 02:36:25PM -0700, Fariborz Jahanian wrote:
        (load_register_parameters): use of UNITS_PER_REGISTER_ARGUMENT
macro.

This is definitely wrong.


In 64-bit mode UNITS_PER_WORD is 64.  In 32-bit mode it's 32.
That you are trying to replace this value with something else
means there's a very fundamental misunderstanding somewhere.


r~


This patch is about a new mixed compilation mode where register sizes are 64bit and are used in
64bit instructions. In this mode, UNITS_PER_WORD is 64. However, when it comes to the abi-specific
areas such as, passing arguments, returning function values, etc. Only 32bit half of the register is used.
For abi-specific areas of compiler, use of UNITS_PER_WORD is replaced with UNITS_PER_REGISTER_ARGUMENT
which is usually identical to UNITS_PER_WORD, except in this mixed mode (it is 32).


- fj



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