aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-09-22 01:28:22 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-21 19:28:22 -0600
commitcb3bb2a765649402a981196026fda605cdd6fc9f (patch)
treeca8b1edb1d99a8a28331458f9d95e77b1e08dcad
parent2a1777af229bc5e9e738fd5bb8285ac0c1e24a7d (diff)
downloadgcc-cb3bb2a765649402a981196026fda605cdd6fc9f.zip
gcc-cb3bb2a765649402a981196026fda605cdd6fc9f.tar.gz
gcc-cb3bb2a765649402a981196026fda605cdd6fc9f.tar.bz2
cse.c (simplify_relational_operation): Set h0u just like h0s.
* cse.c (simplify_relational_operation): Set h0u just like h0s. Similarly for h1u and h1s. From-SVN: r15616
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/cse.c18
2 files changed, 5 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d081529..5906f14 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/cse.c b/gcc/cse.c
index 9bcdcc3..e35a814 100644
--- 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,