aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2002-03-01 01:19:52 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-02-28 17:19:52 -0800
commit7879b81e6cedc9090e72804014ab1927832fe8e0 (patch)
tree7b548c0ab1fb1a218191d2b6c99b0f25d0d7bf12 /gcc/combine.c
parent42d579d8796eca2c8c184c52194ea8659d59c20b (diff)
downloadgcc-7879b81e6cedc9090e72804014ab1927832fe8e0.zip
gcc-7879b81e6cedc9090e72804014ab1927832fe8e0.tar.gz
gcc-7879b81e6cedc9090e72804014ab1927832fe8e0.tar.bz2
rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition to take ptr_extend into account as third type of extension.
* doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition to take ptr_extend into account as third type of extension. (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit fields used by SUBREG_PROMOTED_UNSIGNED_P. * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro. (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1. * calls.c (precompute_arguments): Use new macro. (expand_call): Ditto. * combine.c (nonzero_bits): Ditto. (record_promoted_value): Ditto. * expr.c (store_expr): Ditto. (expand_expr): Ditto. * function.c (assign_parms): Ditto. From-SVN: r50174
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index dba7997..733ce27 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -8270,7 +8270,7 @@ nonzero_bits (x, mode)
been zero-extended, we know that at least the high-order bits
are zero, though others might be too. */
- if (SUBREG_PROMOTED_VAR_P (x) && SUBREG_PROMOTED_UNSIGNED_P (x))
+ if (SUBREG_PROMOTED_VAR_P (x) && SUBREG_PROMOTED_UNSIGNED_P (x) > 0)
nonzero = (GET_MODE_MASK (GET_MODE (x))
& nonzero_bits (SUBREG_REG (x), GET_MODE (x)));
@@ -11325,7 +11325,7 @@ record_promoted_value (insn, subreg)
if (reg_last_set[regno] == insn)
{
- if (SUBREG_PROMOTED_UNSIGNED_P (subreg))
+ if (SUBREG_PROMOTED_UNSIGNED_P (subreg) > 0)
reg_last_set_nonzero_bits[regno] &= GET_MODE_MASK (mode);
}