This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix for movdf_softfloat32 in powerpc-xilinx-eabi
- From: Michael Eager <eager at eagercon dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 May 2009 09:08:39 -0700
- Subject: Fix for movdf_softfloat32 in powerpc-xilinx-eabi
The attached patch fixes a bug in powerpc-xilinx-eabi.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
2009-05-07 Michael Eager <eager@eagercon.com>
* config/rs6000/rs6000.md (*movdf_softfloat32): replace
!TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
diff -urNp --exclude '*.swp' --exclude DEV-PHASE --exclude .svn gcc-orig/gcc/config/rs6000/rs6000.md gcc/gcc/config/rs6000/rs6000.md
--- gcc-orig/gcc/config/rs6000/rs6000.md 2009-04-05 15:04:06.000000000 -0700
+++ gcc/gcc/config/rs6000/rs6000.md 2009-04-05 15:05:08.000000000 -0700
@@ -8679,7 +8679,7 @@
[(set (match_operand:DF 0 "nonimmediate_operand" "=r,r,m,r,r,r")
(match_operand:DF 1 "input_operand" "r,m,r,G,H,F"))]
"! TARGET_POWERPC64
- && ((TARGET_FPRS && !TARGET_DOUBLE_FLOAT)
+ && ((TARGET_FPRS && TARGET_SINGLE_FLOAT)
|| TARGET_SOFT_FLOAT || TARGET_E500_SINGLE)
&& (gpc_reg_operand (operands[0], DFmode)
|| gpc_reg_operand (operands[1], DFmode))"