Commit df6f4086 by Richard Stallman

(num_sign_bit_copies): At end, return 1 if NONZERO has the high bit set.

From-SVN: r4627
parent 12194c38
...@@ -6801,7 +6801,7 @@ num_sign_bit_copies (x, mode) ...@@ -6801,7 +6801,7 @@ num_sign_bit_copies (x, mode)
return 1; return 1;
nonzero = nonzero_bits (x, mode); 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); ? 1 : bitwidth - floor_log2 (nonzero) - 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment