aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-23 01:41:38 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-23 01:41:38 -0700
commit3c094e2201dea8e5a727abb28ed6a8ad0e0c9277 (patch)
tree82f750f83ad89c4e45b8b41aada946a35b1bf5c2 /gcc
parent81e73afa13a40fde47df0322892c1922ab33430b (diff)
downloadgcc-3c094e2201dea8e5a727abb28ed6a8ad0e0c9277.zip
gcc-3c094e2201dea8e5a727abb28ed6a8ad0e0c9277.tar.gz
gcc-3c094e2201dea8e5a727abb28ed6a8ad0e0c9277.tar.bz2
* combine.c (simplify_comparison): Use trunc_int_for_mode.
From-SVN: r34103
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/combine.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7d34071..1822b71 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2000-05-22 Richard Henderson <rth@cygnus.com>
+ * combine.c (simplify_comparison): Use trunc_int_for_mode.
+
+2000-05-22 Richard Henderson <rth@cygnus.com>
+
* stor-layout.c (place_field): Change rli->size to rli->offset.
2000-05-22 Richard Henderson <rth@cygnus.com>
diff --git a/gcc/combine.c b/gcc/combine.c
index 78bfbd0..a1ead20 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -10040,9 +10040,7 @@ simplify_comparison (code, pop0, pop1)
/* Get the constant we are comparing against and turn off all bits
not on in our mode. */
- const_op = INTVAL (op1);
- if (mode_width <= HOST_BITS_PER_WIDE_INT)
- const_op &= mask;
+ const_op = trunc_int_for_mode (INTVAL (op1), mode);
/* If we are comparing against a constant power of two and the value
being compared can only have that single bit nonzero (e.g., it was