re PR rtl-optimization/21102 (ICE: in immed_double_const, on SSE2 intrinsics)
authorRichard Henderson <rth@redhat.com>
Sat, 23 Apr 2005 19:16:54 +0000 (12:16 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 23 Apr 2005 19:16:54 +0000 (12:16 -0700)
        PR rtl-opt/21102
        * simplify-rtx.c (simplify_binary_operation): Fix mode check before
        performing some integral scalar simplifications.

From-SVN: r98631

gcc/ChangeLog
gcc/simplify-rtx.c

index d5595bf1e4eac1fe40ed33c2501a9e365b2dffd6..fc5453cc88e88ce630cf7a5fa809407aa68ee599 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-23  Richard Henderson  <rth@redhat.com>
+
+        PR rtl-opt/21102
+        * simplify-rtx.c (simplify_binary_operation): Fix mode check before
+        performing some integral scalar simplifications.
+
 2005-04-23  Richard Henderson  <rth@redhat.com>
 
        PR target/21099
index 9e02a7a0458acf2bbdb3d06c65849b3aad6b91f3..f5f36aae6da8082b5da04d29807c802788fd7d86 100644 (file)
@@ -1255,7 +1255,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
         have X (if C is 2 in the example above).  But don't make
         something more expensive than we had before.  */
 
-      if (! FLOAT_MODE_P (mode))
+      if (SCALAR_INT_MODE_P (mode))
        {
          HOST_WIDE_INT coeff0h = 0, coeff1h = 0;
          unsigned HOST_WIDE_INT coeff0l = 1, coeff1l = 1;
@@ -1426,7 +1426,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
         have X (if C is 2 in the example above).  But don't make
         something more expensive than we had before.  */
 
-      if (! FLOAT_MODE_P (mode))
+      if (SCALAR_INT_MODE_P (mode))
        {
          HOST_WIDE_INT coeff0h = 0, negcoeff1h = -1;
          unsigned HOST_WIDE_INT coeff0l = 1, negcoeff1l = -1;