From d038420ea8bfbe2c4b7253d718ef00791cb5e78b Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 26 Nov 1992 17:06:44 +0000 Subject: [PATCH] (num_sign_bit_copies): Fix 1-off error in PLUS case. From-SVN: r2807 --- gcc/combine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/combine.c b/gcc/combine.c index 1021391f0fe..fc856b5e088 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6355,7 +6355,7 @@ num_sign_bit_copies (x, mode) sig = significant_bits (XEXP (x, 0), mode); if ((((HOST_WIDE_INT) 1 << (bitwidth - 1)) & sig) == 0) return (sig == 1 || sig == 0 ? bitwidth - : bitwidth - floor_log2 (sig)); + : bitwidth - floor_log2 (sig) - 1); } num0 = num_sign_bit_copies (XEXP (x, 0), mode);