summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-26 06:05:48 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-26 06:05:48 +0000
commit9b46e58b5f991b44214160833eb1ee64fdc43718 (patch)
treef74443df976a468a632228cd8b2dcaafee3ec91e /gcc/combine.c
parentf579c40a081e7cd4a49ef8934da4722276a1b79e (diff)
downloadgcc-9b46e58b5f991b44214160833eb1ee64fdc43718.tar.gz
* combine.c (if_then_else_cond): Tighten mode check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71815 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index c18c36e8091..3a3d9223d9f 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -7422,7 +7422,7 @@ if_then_else_cond (rtx x, rtx *ptrue, rtx *pfalse)
}
/* Likewise for 0 or a single bit. */
- else if (mode != VOIDmode
+ else if (SCALAR_INT_MODE_P (mode)
&& GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
&& exact_log2 (nz = nonzero_bits (x, mode)) >= 0)
{