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 [FSF mainline] Fix pattern for store and update for apple-ppc-darwin mixed mode.



On Aug 25, 2004, at 10:31 AM, David Edelsohn wrote:


	This should be solved using the define_mode_macro functionality
now used by the Mips port.

;; This mode macro allows :P to be used for patterns that operate on
;; pointer-sized quantities. Exactly one of the two alternatives will match.
(define_mode_macro P [(SI "Pmode == SImode") (DI "Pmode == DImode")])

Here is the revised patch which uses define_mode_macro. Bootstrap, dejagnu testing is in progress.


OK for FSF mainline if all pass?

- fariborz (fjahanian@apple.com).


ChangeLog:


2004-08-25 Fariborz Jahanian <fjahanian@apple.com>

* config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
either gen_movdi_di_update or gen_movdi_si_update depending on
target mode.
* config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
to generate two versions.



Attachment: darwin-double-longdouble.c
Description: Text document

Attachment: fsf-3767380.alt.txt
Description: Text document



David

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