This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix legit address for powerpc-xilinx-eabi
- From: Michael Eager <eager at eagercon dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 10 Feb 2009 11:35:35 -0800
- Subject: Re: Fix legit address for powerpc-xilinx-eabi
- References: <497A2287.4040406@eagercon.com>
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))