(num_sign_bit_copies): At end, return 1 if NONZERO has the high bit set.
From-SVN: r4627
This commit is contained in:
parent
12194c388f
commit
df6f4086b0
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user