(num_sign_bit_copies): Return 1 on failure, not 0.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 1 Dec 1992 15:42:55 +0000 (10:42 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 1 Dec 1992 15:42:55 +0000 (10:42 -0500)
Fix typo in last change; return 1 on failure, not BITWIDTH.

From-SVN: r2827

gcc/combine.c

index 90a4863..8d1a845 100644 (file)
@@ -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;