]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
We should not strip subregs of non-scalars during shift expansion.
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 20:26:51 +0000 (20:26 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Wed, 13 Feb 2013 20:26:51 +0000 (12:26 -0800)
* expmed.c (expand_shift_1): Only strip scalar integer subregs.

From-SVN: r196028

gcc/ChangeLog
gcc/expmed.c

index 818678aaf00bf1a908b9c06fc8c678599613fe51..6f745c9351d2fc75f237ba7ce78c2c5aafc21ce0 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-13  David S. Miller  <davem@davemloft.net>
+
+       * expmed.c (expand_shift_1): Only strip scalar integer subregs.
+
 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
 
        Backport from mainline
index 077d0d79b8ae61c0cb92e410d4c7850c3ca8dbad..689507428245307125e79bbaa58727a6c79d3b0d 100644 (file)
@@ -2199,7 +2199,8 @@ expand_shift_1 (enum tree_code code, enum machine_mode mode, rtx shifted,
                       % GET_MODE_BITSIZE (mode));
       else if (GET_CODE (op1) == SUBREG
               && subreg_lowpart_p (op1)
-              && INTEGRAL_MODE_P (GET_MODE (SUBREG_REG (op1))))
+              && SCALAR_INT_MODE_P (GET_MODE (SUBREG_REG (op1)))
+              && SCALAR_INT_MODE_P (GET_MODE (op1)))
        op1 = SUBREG_REG (op1);
     }