From: Richard Stallman Date: Fri, 4 Jun 1993 00:45:44 +0000 (+0000) Subject: (num_sign_bit_copies): At end, return 1 if NONZERO has the high bit set. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df6f4086b07f8ffe4cc6dd90cc21056d2cd54d86;p=gcc.git (num_sign_bit_copies): At end, return 1 if NONZERO has the high bit set. From-SVN: r4627 --- diff --git a/gcc/combine.c b/gcc/combine.c index 5ac961f184c..7aa534879f5 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6801,7 +6801,7 @@ num_sign_bit_copies (x, mode) return 1; nonzero = nonzero_bits (x, mode); - return (nonzero == GET_MODE_MASK (mode) + return (nonzero & ((HOST_WIDE_INT) 1 << (bitwidth - 1)) ? 1 : bitwidth - floor_log2 (nonzero) - 1); }