From 901e59b2bd947255b6a3fdacf387f37b4440aa0e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 3 Feb 2015 14:18:38 +0000 Subject: [PATCH] arm.c (thumb2_reorg): Test UNARY_P and BINARY_P instead of OBJECT_P. gcc/ * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P instead of OBJECT_P. From-SVN: r220371 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 855a76d0f1c..9552d334c5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-03 Richard Sandiford + + * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P + instead of OBJECT_P. + 2015-02-03 Eric Botcazou PR target/62631 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index c7c0ecf20d0..7bf5b4dfcc7 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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)) -- 2.30.2