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] Patch for target/17119


Hi Nick,

This is a new patch for PR target/17119.

Please apply to 3.4 branch and the mainline.

Regards,

Kazuhiro Inaoka

gcc/ChangeLog
2004-08-26  Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>

* config/m32r.c (gen_compare): fixed PR target/17119.


Index: m32r.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.c,v
retrieving revision 1.80.4.3
diff -c -r1.80.4.3 m32r.c
*** m32r.c	7 Jul 2004 11:08:37 -0000	1.80.4.3
--- m32r.c	26 Aug 2004 06:09:55 -0000
***************
*** 1175,1184 ****
  	y = force_reg (GET_MODE (x), y);
        else
  	{
! 	  int ok_const =
! 	    (code == LTU || code == LEU || code == GTU || code == GEU)
! 	    ? uint16_operand (y, GET_MODE (y))
! 	    : reg_or_cmp_int16_operand (y, GET_MODE (y));
  	  
  	  if (! ok_const)
  	    y = force_reg (GET_MODE (x), y);
--- 1175,1181 ----
  	y = force_reg (GET_MODE (x), y);
        else
  	{
! 	  int ok_const = reg_or_int16_operand (y, GET_MODE (y));
  	  
  	  if (! ok_const)
  	    y = force_reg (GET_MODE (x), y);

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