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: 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);
      }



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