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]

Re: consecutive hard regs in complexes


At 3:43 PM +0200 6/16/00, benedetto.proietti@roma1.infn.it wrote:
>Hi everybody,
>this is probably a stupid question.
>The machine I am doing the port for natively supports complex float (2 *
>32 bits). A complex number is made of a couple of _consecutive_
>registers.
>As far as I have understood, GCC handles complexes as a CONCAT of two SF
>regs.
>How can i force the two regs CONCATenated to be reloaded into 2
>consecutive hard regs?
>
>thank you
>Benedetto

	One way would be to change your patterns to have a
	scratch DI mode register as part of a parallel
	and use (subreg:SF ...) to access the pieces.

	I'm pretty sure there are some examples of this sort of thing
	for the divmod patterns where some machines will return the
	remainder and the quotient in a register pair.

	Off hand, I couldn't tell you which ports to look at...

	-- Al
-- 
------------------------------------------------------------------------

		    Quality Software Management
		http://www.tiac.net/users/qsmgmt
			apl@alum.mit.edu
			(978)287-0435 Voice
			(978)808-6836 Cell
			(978)287-0436 Fax

	Software Process Improvement and Management Consulting
	     Language Design and Compiler Implementation

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