cse.c (simplify_relational_operation): Set h0u just like h0s.
authorJeffrey A Law <law@cygnus.com>
Mon, 22 Sep 1997 01:28:22 +0000 (01:28 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 22 Sep 1997 01:28:22 +0000 (19:28 -0600)
        * cse.c (simplify_relational_operation): Set h0u just like h0s.
        Similarly for h1u and h1s.

From-SVN: r15616

gcc/ChangeLog
gcc/cse.c

index d08152910846a104cae106c92fb1a8d0eef1e645..5906f14672d47ebebe0b1f0ea094a347e6bbf529 100644 (file)
@@ -1,5 +1,8 @@
 Sun Sep 21 17:45:45 1997  Jeffrey A Law  (law@cygnus.com)
 
+       * cse.c (simplify_relational_operation): Set h0u just like h0s.
+       Similarly for h1u and h1s.
+
        * jump.c (jmp_uses_reg_or_mem): Deleted unused function.
        (find_basic_blocks): Use computed_jump_p to determine if a
        particular JUMP_INSN is a computed jump.
index 9bcdcc3675e409a77fe8eef01cf4a5844edae09f..e35a814b3208dd04f937b574457aecfbb15614d4 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4482,14 +4482,7 @@ simplify_relational_operation (code, mode, op0, op1)
       else
        {
          l0u = l0s = INTVAL (op0);
-         h0s = l0s < 0 ? -1 : 0;
-         /* If WIDTH is nonzero and larger than HOST_BITS_PER_WIDE_INT,
-            then the high word is derived from the sign bit of the low
-            word, else the high word is zero.  */
-         if (width != 0 && width > HOST_BITS_PER_WIDE_INT)
-           h0u = l0s < 0 ? -1 : 0;
-         else
-           h0u = 0;
+         h0u = h0s = l0s < 0 ? -1 : 0;
        }
          
       if (GET_CODE (op1) == CONST_DOUBLE)
@@ -4500,14 +4493,7 @@ simplify_relational_operation (code, mode, op0, op1)
       else
        {
          l1u = l1s = INTVAL (op1);
-         h1s = l1s < 0 ? -1 : 0;
-         /* If WIDTH is nonzero and larger than HOST_BITS_PER_WIDE_INT,
-            then the high word is derived from the sign bit of the low
-            word, else the high word is zero.  */
-         if (width != 0 && width > HOST_BITS_PER_WIDE_INT)
-           h1u = l1s < 0 ? -1 : 0;
-         else
-           h1u = 0;
+         h1u = h1s = l1s < 0 ? -1 : 0;
        }
 
       /* If WIDTH is nonzero and smaller than HOST_BITS_PER_WIDE_INT,