This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: split complex arguments (heads up)
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, david edelsohn <dje at watson dot ibm dot com>
- Date: Tue, 3 Jun 2003 19:47:20 -0400
- Subject: Re: patch: split complex arguments (heads up)
On Tuesday, June 3, 2003, at 06:32 PM, Richard Henderson wrote:
On Tue, Jun 03, 2003 at 05:43:56PM -0400, Aldy Hernandez wrote:
! if (TARGET_32BIT
! && GET_MODE_BITSIZE (mode) != 32)
You've got the test wrong way round.
Sorry, it should actually be > 32.
OK?
2003-06-03 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
complex numbers <= 32 bits into two registers.
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.482
diff -c -p -r1.482 rs6000.c
*** config/rs6000/rs6000.c 3 Jun 2003 11:14:06 -0000 1.482
--- config/rs6000/rs6000.c 3 Jun 2003 23:46:57 -0000
*************** rs6000_complex_function_value (enum mach
*** 14378,14384 ****
regno = GP_ARG_RETURN;
/* 32-bit is OK since it'll go in r3/r4. */
! if (TARGET_32BIT)
return gen_rtx_REG (mode, regno);
}
--- 14378,14385 ----
regno = GP_ARG_RETURN;
/* 32-bit is OK since it'll go in r3/r4. */
! if (TARGET_32BIT
! && GET_MODE_BITSIZE (mode) > 32)
return gen_rtx_REG (mode, regno);
}