From 4f2e9ceb5df926598edfb2b9a2cd1a5a581d0002 Mon Sep 17 00:00:00 2001
From: danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 8 Dec 2006 17:28:59 +0000
Subject: [PATCH] 	* pa.h (LEGITIMATE_CONSTANT_P): Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119661 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog      |  4 ++++
 gcc/config/pa/pa.h | 19 ++++++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ca6a05fa5858..bb905058aa1c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-08  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
+
+	* pa.h (LEGITIMATE_CONSTANT_P): Simplify.
+
 2006-12-08  Mark Shinwell  <shinwell@codesourcery.com>
 
 	* recog.c (mode_dependent_address_p): Identify pre-increment,
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index f463fafe3b81..69d599cfa1ac 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1119,13 +1119,18 @@ extern int may_call_alloca;
 #define LEGITIMATE_CONSTANT_P(X)				\
   ((GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT			\
     || (X) == CONST0_RTX (GET_MODE (X)))			\
-   && (NEW_HP_ASSEMBLER || TARGET_GAS || GET_CODE (X) != LABEL_REF)	\
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_DOUBLE)		\
-   && !(TARGET_64BIT && GET_CODE (X) == CONST_INT		\
-	&& !(HOST_BITS_PER_WIDE_INT <= 32			\
-	     || (reload_in_progress || reload_completed)	\
-	     || LEGITIMATE_64BIT_CONST_INT_P (INTVAL (X))	\
-	     || cint_ok_for_move (INTVAL (X))))			\
+   && (NEW_HP_ASSEMBLER						\
+       || TARGET_GAS						\
+       || GET_CODE (X) != LABEL_REF)				\
+   && (!TARGET_64BIT						\
+       || GET_CODE (X) != CONST_DOUBLE)				\
+   && (!TARGET_64BIT						\
+       || HOST_BITS_PER_WIDE_INT <= 32				\
+       || GET_CODE (X) != CONST_INT				\
+       || reload_in_progress					\
+       || reload_completed					\
+       || LEGITIMATE_64BIT_CONST_INT_P (INTVAL (X))		\
+       || cint_ok_for_move (INTVAL (X)))			\
    && !function_label_operand (X, VOIDmode))
 
 /* Target flags set on a symbol_ref.  */
-- 
GitLab