This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix legit address for powerpc-xilinx-eabi


Michael Eager wrote:
The attached patch makes rs6000_legitimate_address return
true for DImode or DFmode only if double-precision FP regs
are present.



--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
2009-01-23  Michael Eager <eager@eagercon.com>

	* config/rs6000/rs6000.c: rs6000_legitimate_address. Allow
	address for DImode/DFmode only if double-precision FP regs.
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude .svn gcc-orig/gcc/config/rs6000/rs6000.c gcc/gcc/config/rs6000/rs6000.c
--- gcc-orig/gcc/config/rs6000/rs6000.c	2009-01-21 13:46:24.000000000 -0800
+++ gcc/gcc/config/rs6000/rs6000.c	2009-01-21 13:49:04.000000000 -0800
@@ -4436,7 +4436,7 @@ rs6000_legitimate_address (enum machine_
   if (mode != TImode
       && mode != TFmode
       && mode != TDmode
-      && ((TARGET_HARD_FLOAT && TARGET_FPRS)
+      && ((TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_DOUBLE_FLOAT)
 	  || TARGET_POWERPC64
 	  || (mode != DFmode && mode != DDmode)
 	  || (TARGET_E500_DOUBLE && mode != DDmode))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]