* combine.c (simplify_comparison): Apply SUBREG_REG to SUBREGs.
authorAlasdair Baird <alasdair@wildcat.demon.co.uk>
Thu, 2 Jul 1998 00:55:45 +0000 (00:55 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 2 Jul 1998 00:55:45 +0000 (18:55 -0600)
From-SVN: r20887

gcc/ChangeLog
gcc/combine.c

index fc7c2d0..3ff93d4 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jul  2 01:53:32 1998  Alasdair Baird       <alasdair@wildcat.demon.co.uk>
+
+       * combine.c (simplify_comparison): Apply SUBREG_REG to SUBREGs.
+
 Wed Jul  1 23:06:03 1998  Richard Henderson  <rth@cygnus.com>
 
        * i386.h (HARD_REGNO_MODE_OK): Kill spurrious test.
index ea6bcb8..a0c7864 100644 (file)
@@ -9471,10 +9471,10 @@ simplify_comparison (code, pop0, pop1)
                  > GET_MODE_SIZE (GET_MODE (SUBREG_REG (inner_op0))))
              && (GET_MODE (SUBREG_REG (inner_op0))
                  == GET_MODE (SUBREG_REG (inner_op1)))
-             && (GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (op0)))
+             && (GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (inner_op0)))
                  <= HOST_BITS_PER_WIDE_INT)
              && (0 == ((~c0) & nonzero_bits (SUBREG_REG (inner_op0),
-                                            GET_MODE (SUBREG_REG (op0)))))
+                                            GET_MODE (SUBREG_REG (inner_op0)))))
              && (0 == ((~c1) & nonzero_bits (SUBREG_REG (inner_op1),
                                             GET_MODE (SUBREG_REG (inner_op1))))))
            {