From ce8076ada5a574fdbea23109cb7273eccc5837dc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 3 May 2002 18:28:30 +0200 Subject: [PATCH] i386.c (ix86_expand_int_movcc): Truncate to proper mode. * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper mode. From-SVN: r53099 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f192765c926..533ee111648 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-03 Jakub Jelinek + + * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper + mode. + 2002-05-03 Rainer Orth * doc/install.texi (Installing): Mention GCC 3.1 buildstats. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1f3d85f51b1..00d7d0dd915 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7994,7 +7994,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_mode (INTVAL (ix86_compare_op1) + 1, + GET_MODE (ix86_compare_op0)); } start_sequence ();