This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/34814 Force SDmode function args into FP registers per the ABI
- From: Peter Bergner <bergner at vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Edelsohn <dje at watson dot ibm dot com>, Janis Johnson <janis187 at us dot ibm dot com>
- Date: Wed, 23 Jan 2008 10:13:13 -0600
- Subject: Re: [PATCH] PR target/34814 Force SDmode function args into FP registers per the ABI
- References: <20080123062513.GA21506@vervain.rchland.ibm.com>
On Wed, 2008-01-23 at 00:25 -0600, Peter Bergner wrote:
> This patch fixes PR34814, where SDmode arguments were not being passed and
> returned in floating point registers as specified in the powerpc-linux and
> powerpc64-linux ABIs. Given the upcoming 4.3 cutoff and some reload
> problems, I am delaying adding support for -mcpu=power6 compiles to make
> use of the 32-bit indexed load/store instructions to load/store SDmode
> values directly to/from memory into the FP registers. Instead, they use
> the same mechanism non power6 compiles due and copy through the integer
> registers and a 64-bit stack slot. I'll tackle that for 4.4.
>
> This has passed bootstrapping on powerpc64-linux and is currently regtesting.
> Is this ok for mainline if there are no regressions in the testsuite?
Testing completed with no regressions and we now correctly compile
gcc.target/powerpc/ppc32-abi-dfp-1.c.
Peter