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 Thursday, October 23, 2003, at 12:14 PM, Ulrich Weigand wrote:


David Edelsohn wrote:

However, this design does not function properly when the 64-bit
computation / 32-bit ABI mode is enabled. emit_group_{load,store} do not
generate the correct argument moves with word_mode remaining SImode. At
least now we can focus on patches to fix emit_group_{load,store} and
friends.

Why would you have word_mode == SImode? I've been playing around with the same issue on zSeries, and found I could get it working pretty well with setting word_mode to DImode, allowing DImode in GPRs, but forcing function arguments/return values to register pairs using PARALLEL.

(When having word_mode == SImode, everything broke because there appears
to be the assumption that every word_mode-sized SUBREG of a GPR must
be directly accessible - which is not the case at least on zSeries ...)


Everything's still not perfect: emit_group_load has a bug where it doesn't
handle constants correctly, and even when it works, it generates pretty
inefficient code (for some reason, it always converts between the two-
register and single-register form of a DImode value via a stack temp);

I experienced similar behavior. emit_group_store produced inefficient code and emit_group_load
produced incorrect code when wode_mode == SImode.


- fariborz jahanian

also, reg_referenced_p doesn't handle PARALLELs correctly.  But those
should be minor issues to fix.


Mit freundlichen Gruessen / Best Regards


Ulrich Weigand

--
Dr. Ulrich Weigand
Linux for S/390 Design & Development
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com




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