* combine.c (if_then_else_cond): Tighten mode check.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 26 Sep 2003 06:05:48 +0000 (06:05 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 26 Sep 2003 06:05:48 +0000 (06:05 +0000)
From-SVN: r71815

gcc/ChangeLog
gcc/combine.c

index 0051408dee0cced075a4d26611406e28941e6753..6ead1c02d1bbab56938db7a9ecf0f5acae13158e 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
+
+       * combine.c (if_then_else_cond): Tighten mode check.
+
 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
index c18c36e80917c4ba7f2351a1a77047e9990b7949..3a3d9223d9fd15a6ddfca99c8dbb37d1758c9b86 100644 (file)
@@ -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)
     {