(gen_lowpart_common): Do nothing if size is greater than twice host
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 22 Nov 1994 22:41:55 +0000 (17:41 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 22 Nov 1994 22:41:55 +0000 (17:41 -0500)
wordsize, not just if equal.

From-SVN: r8552

gcc/emit-rtl.c

index 270d8d4088be8cd15f8a47e0f2e17b77490bf8d9..d6dc980814cc6f11bc958c575b9b2128a0b16a35 100644 (file)
@@ -651,7 +651,7 @@ gen_lowpart_common (mode, x)
         either a reasonable negative value or a reasonable unsigned value
         for this mode.  */
 
-      if (GET_MODE_BITSIZE (mode) == 2 * HOST_BITS_PER_WIDE_INT)
+      if (GET_MODE_BITSIZE (mode) >= 2 * HOST_BITS_PER_WIDE_INT)
        return x;
       else if (GET_MODE_BITSIZE (mode) > HOST_BITS_PER_WIDE_INT)
        return 0;