This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] LEGITIMATE_CONSTANT_P and vectors
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, dje at watson dot ibm dot com
- Date: Fri, 20 Jun 2003 16:04:57 -0400
- Subject: Re: [RFC] LEGITIMATE_CONSTANT_P and vectors
- References: <20030619172515.GA12823@redhat.com>
I was working on an older tree. Here is the version of the patch I'm
committing (mainline and e500 branch).
2003-06-20 Aldy Hernandez <aldyh@redhat.com>
PR/11092
* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
vectors.
Index: config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.281
diff -c -p -r1.281 rs6000.h
*** config/rs6000/rs6000.h 18 Jun 2003 06:18:59 -0000 1.281
--- config/rs6000/rs6000.h 20 Jun 2003 20:03:30 -0000
*************** typedef struct rs6000_args
*** 2046,2054 ****
acceptable. */
#define LEGITIMATE_CONSTANT_P(X) \
! ((GET_CODE (X) != CONST_DOUBLE || GET_MODE (X) == VOIDmode \
|| (TARGET_POWERPC64 && GET_MODE (X) == DImode) \
! || easy_fp_constant (X, GET_MODE (X))) \
&& !rs6000_tls_referenced_p (X))
/* The macros REG_OK_FOR..._P assume that the arg is a REG rtx
--- 2046,2057 ----
acceptable. */
#define LEGITIMATE_CONSTANT_P(X) \
! (((GET_CODE (X) != CONST_DOUBLE \
! && GET_CODE (X) != CONST_VECTOR) \
! || GET_MODE (X) == VOIDmode \
|| (TARGET_POWERPC64 && GET_MODE (X) == DImode) \
! || easy_fp_constant (X, GET_MODE (X)) \
! || easy_vector_constant (X, GET_MODE (X))) \
&& !rs6000_tls_referenced_p (X))
/* The macros REG_OK_FOR..._P assume that the arg is a REG rtx