projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a2d2f9
)
(num_sign_bit_copies): Return 1 on failure, not 0.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 1 Dec 1992 15:42:55 +0000
(10:42 -0500)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/combine.c
b/gcc/combine.c
index 90a48636e6c2164d45fa56761257b90c6951737f..8d1a845ffefd27c780607c32b245aa27317a57f5 100644
(file)
--- a/
gcc/combine.c
+++ b/
gcc/combine.c
@@
-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;