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]

[PATCH] Add missing trunc_int_for_mode on i386 (was Re: [3.1] Re: ICE in do_SUBST when compiling)


On Tue, Apr 30, 2002 at 07:35:36PM +0200, Jan Hubicka wrote:
> Hi,
> this patch is backported form 3.2.  I've bootstrapped it, but I am not sure
> whether it can go to 3.1.  It is fairly obvious, but I am not aware of other
> target where the bug reproduce.  Mark?

i386.c does something similar, ok to commit at least to trunk (with the
obvious gen_int_mode change)?

2002-05-02  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
	mode.

--- gcc/config/i386/i386.c.jj	Tue Apr 23 20:33:42 2002
+++ gcc/config/i386/i386.c	Thu May  2 13:41:30 2002
@@ -7966,7 +7966,9 @@ ix86_expand_int_movcc (operands)
 	code = LTU;
       else
 	code = GEU;
-      ix86_compare_op1 = GEN_INT (INTVAL (ix86_compare_op1) + 1);
+      ix86_compare_op1
+	= GEN_INT (trunc_int_for_mode (INTVAL (ix86_compare_op1) + 1,
+				       GET_MODE (ix86_compare_op0)));
     }
 
   start_sequence ();

> Tue Apr 30 19:30:49 CEST 2002  Jan Hubicka  <jh@suse.cz>
> 	* loop.c (canonicalize_condition): Truncate to proper mode.

	Jakub


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