i386.c (ix86_expand_int_movcc): Truncate to proper mode.
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 May 2002 16:28:30 +0000 (18:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 May 2002 16:28:30 +0000 (18:28 +0200)
* config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
mode.

From-SVN: r53099

gcc/ChangeLog
gcc/config/i386/i386.c

index f192765..533ee11 100644 (file)
@@ -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.
index 1f3d85f..00d7d0d 100644 (file)
@@ -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 ();