Commit 6752e8d2 by Richard Kenner

(num_sign_bit_copies): Return 1 on failure, not 0.

Fix typo in last change; return 1 on failure, not BITWIDTH.

From-SVN: r2827
parent 8a2d2f90
...@@ -6225,7 +6225,7 @@ num_sign_bit_copies (x, mode) ...@@ -6225,7 +6225,7 @@ num_sign_bit_copies (x, mode)
mode = GET_MODE (x); mode = GET_MODE (x);
if (mode == VOIDmode) if (mode == VOIDmode)
return 0; return 1;
bitwidth = GET_MODE_BITSIZE (mode); bitwidth = GET_MODE_BITSIZE (mode);
...@@ -6457,7 +6457,7 @@ num_sign_bit_copies (x, mode) ...@@ -6457,7 +6457,7 @@ num_sign_bit_copies (x, mode)
safely compute the mask for this mode, always return BITWIDTH. */ safely compute the mask for this mode, always return BITWIDTH. */
if (bitwidth > HOST_BITS_PER_WIDE_INT) if (bitwidth > HOST_BITS_PER_WIDE_INT)
return bitwidth; return 1;
sig = significant_bits (x, mode); sig = significant_bits (x, mode);
return sig == GET_MODE_MASK (mode) ? 1 : bitwidth - floor_log2 (sig) - 1; return sig == GET_MODE_MASK (mode) ? 1 : bitwidth - floor_log2 (sig) - 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