This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: consecutive hard regs in complexes
- To: benedetto dot proietti at roma1 dot infn dot it
- Subject: Re: consecutive hard regs in complexes
- From: Alan Lehotsky <lehotsky at tiac dot net>
- Date: Fri, 16 Jun 2000 10:37:38 -0400
- Cc: gcc at gcc dot gnu dot org
- References: <394A2F07.C7B53D26@roma1.infn.it>
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