This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add missing trunc_int_for_mode on i386 (was Re: [3.1] Re: ICE in do_SUBST when compiling)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: rth at redhat dot com, jh at suse dot cz
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 May 2002 13:44:53 +0200
- Subject: [PATCH] Add missing trunc_int_for_mode on i386 (was Re: [3.1] Re: ICE in do_SUBST when compiling)
- References: <20020430133739.A29296@suse.de> <20020430173536.GV18000@atrey.karlin.mff.cuni.cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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