(num_sign_bit_copies): Return 1 on failure, not 0.
Fix typo in last change; return 1 on failure, not BITWIDTH. From-SVN: r2827
This commit is contained in:
parent
8a2d2f90c9
commit
6752e8d2a4
@ -6225,7 +6225,7 @@ num_sign_bit_copies (x, mode)
|
||||
mode = GET_MODE (x);
|
||||
|
||||
if (mode == VOIDmode)
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
bitwidth = GET_MODE_BITSIZE (mode);
|
||||
|
||||
@ -6457,7 +6457,7 @@ num_sign_bit_copies (x, mode)
|
||||
safely compute the mask for this mode, always return BITWIDTH. */
|
||||
|
||||
if (bitwidth > HOST_BITS_PER_WIDE_INT)
|
||||
return bitwidth;
|
||||
return 1;
|
||||
|
||||
sig = significant_bits (x, mode);
|
||||
return sig == GET_MODE_MASK (mode) ? 1 : bitwidth - floor_log2 (sig) - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user