arm.c (thumb2_reorg): Test UNARY_P and BINARY_P instead of OBJECT_P.
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Feb 2015 14:18:38 +0000 (14:18 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 3 Feb 2015 14:18:38 +0000 (14:18 +0000)
gcc/
* config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
instead of OBJECT_P.

From-SVN: r220371

gcc/ChangeLog
gcc/config/arm/arm.c

index 855a76d0f1c5aab3d28655093b4e3de3db2c49e3..9552d334c5c9d6d417cf44c2902b2307bdb1c2ca 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
+       instead of OBJECT_P.
+
 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR target/62631
index c7c0ecf20d0465a1df5d35461823dedca928e161..7bf5b4dfcc7c43f30dbfe977177729b99d807379 100644 (file)
@@ -17297,7 +17297,7 @@ thumb2_reorg (void)
              rtx src = XEXP (pat, 1);
              rtx op0 = NULL_RTX, op1 = NULL_RTX;
 
-             if (!OBJECT_P (src))
+             if (UNARY_P (src) || BINARY_P (src))
                  op0 = XEXP (src, 0);
 
              if (BINARY_P (src))