summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-03 15:12:09 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-03 15:12:09 +0000
commit29bf1cad44ad1eaef89f5af4d7f36ffb138761da (patch)
tree022330cdcbe616fd420cb1efb6abf8b5f969d59e /gcc/config/rs6000
parent8dd6160ee3610e66db046ac585c1aad56a28cd38 (diff)
downloadgcc-29bf1cad44ad1eaef89f5af4d7f36ffb138761da.tar.gz
* rs6000.md (movsf): Disable explicit secondary-reload-like
functionality if TARGET_POWERPC64. (movdf): Remove TARGET_POWERPC64 explicit secondary-reload-like functionality. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22213 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/rs6000.md23
1 files changed, 4 insertions, 19 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 65af9622cb1..23064076530 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -5686,7 +5686,8 @@
else if (TARGET_HARD_FLOAT)
{
- if (GET_CODE (operands[1]) == REG && REGNO (operands[1]) < 32)
+ if (! TARGET_POWERPC64
+ && GET_CODE (operands[1]) == REG && REGNO (operands[1]) < 32)
{
/* If this is a store to memory or another integer register do the
move directly. Otherwise store to a temporary stack slot and
@@ -5729,7 +5730,8 @@
operands[1] = force_reg (SFmode, operands[1]);
}
- if (GET_CODE (operands[0]) == REG && REGNO (operands[0]) < 32)
+ if (! TARGET_POWERPC64
+ && GET_CODE (operands[0]) == REG && REGNO (operands[0]) < 32)
{
if (GET_CODE (operands[1]) == MEM
#if HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT && ! defined(REAL_IS_NOT_DOUBLE)
@@ -5848,23 +5850,6 @@
if (GET_CODE (operands[0]) != REG)
operands[1] = force_reg (DFmode, operands[1]);
- /* Stores between FPR and any non-FPR registers must go through a
- temporary stack slot. */
-
- if (TARGET_POWERPC64
- && GET_CODE (operands[0]) == REG && GET_CODE (operands[1]) == REG
- && ((FP_REGNO_P (REGNO (operands[0]))
- && ! FP_REGNO_P (REGNO (operands[1])))
- || (FP_REGNO_P (REGNO (operands[1]))
- && ! FP_REGNO_P (REGNO (operands[0])))))
- {
- rtx stack_slot = assign_stack_temp (DFmode, 8, 0);
-
- emit_move_insn (stack_slot, operands[1]);
- emit_move_insn (operands[0], stack_slot);
- DONE;
- }
-
if (CONSTANT_P (operands[1]) && ! easy_fp_constant (operands[1], DFmode))
{
operands[1] = force_const_mem (DFmode, operands[1]);