Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f6ba0600
Commit
f6ba0600
authored
Jun 23, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(movsf): Only generate stack temporary if used.
From-SVN: r7552
parent
8c461ea1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gcc/config/rs6000/rs6000.md
+8
-4
No files found.
gcc/config/rs6000/rs6000.md
View file @
f6ba0600
...
...
@@ -3763,8 +3763,6 @@
if (GET_CODE (operands
[
1
]
) == REG && REGNO (operands
[
1
]
) < 32)
{
rtx stack_slot = assign_stack_temp (SFmode, 4, 0);
/
*
If this is a store to memory or another integer register do the
move directly. Otherwise store to a temporary stack slot and
load from there into a floating point register.
*
/
...
...
@@ -3779,19 +3777,21 @@
operand_subword (operands[1], 0, 0, SFmode));
DONE;
}
else
{
rtx stack_slot = assign_stack_temp (SFmode, 4, 0);
emit_move_insn (stack_slot, operands[1]);
emit_move_insn (operands[0], stack_slot);
DONE;
}
}
if (GET_CODE (operands
[
0
]
) == MEM)
operands
[
1
]
= force_reg (SFmode, operands
[
1
]
);
if (GET_CODE (operands
[
0
]
) == REG && REGNO (operands
[
0
]
) < 32)
{
rtx stack_slot = assign_stack_temp (SFmode, 4, 0);
if (GET_CODE (operands
[
1
]
) == MEM
#if HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT && ! defined(REAL_IS_NOT_DOUBLE)
|| GET_CODE (operands
[
1
]
) == CONST_DOUBLE
...
...
@@ -3805,11 +3805,15 @@
operand_subword (operands
[
1
]
, 0, 0, SFmode));
DONE;
}
else
{
rtx stack_slot = assign_stack_temp (SFmode, 4, 0);
emit_move_insn (stack_slot, operands[1]);
emit_move_insn (operands[0], stack_slot);
DONE;
}
}
if (CONSTANT_P (operands
[
1
]
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment