(num_sign_bit_copies): Fix 1-off error in PLUS case.
From-SVN: r2807
This commit is contained in:
parent
3b2f07926a
commit
d038420ea8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user