aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-05-03 18:28:30 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2002-05-03 18:28:30 +0200
commitce8076ada5a574fdbea23109cb7273eccc5837dc (patch)
treed151352bba38c1adb46cb847d208a7c4fd40e781
parent0abc082acf3728d036fbc3d2fd67a115fa044409 (diff)
downloadgcc-ce8076ada5a574fdbea23109cb7273eccc5837dc.zip
gcc-ce8076ada5a574fdbea23109cb7273eccc5837dc.tar.gz
gcc-ce8076ada5a574fdbea23109cb7273eccc5837dc.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f192765..533ee11 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-03 Jakub Jelinek <jakub@redhat.com>
+
+ * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
+ mode.
+
2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* doc/install.texi (Installing): Mention GCC 3.1 buildstats.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 1f3d85f..00d7d0d 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 ();