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

From-SVN: r4627
This commit is contained in:
Richard Stallman 1993-06-04 00:45:44 +00:00
parent 12194c388f
commit df6f4086b0

View File

@ -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);
} }