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
503e4b87
Commit
503e4b87
authored
Apr 29, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(movxf): Add pattern for soft-float moves.
From-SVN: r4275
parent
2505bc97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletions
+42
-1
gcc/config/m68k/m68k.md
+42
-1
No files found.
gcc/config/m68k/m68k.md
View file @
503e4b87
...
...
@@ -1091,7 +1091,7 @@
(define_expand "movxf"
[
(set (match_operand:XF 0 "nonimmediate_operand" "")
(match_operand:XF 1 "general_operand" ""))]
"
TARGET_68881
"
""
"
{
if (CONSTANT_P (operands
[
1
]
))
...
...
@@ -1140,6 +1140,47 @@
}
")
(define_insn ""
[
(set (match_operand:XF 0 "nonimmediate_operand" "=rm,&rf,&rof
<>
")
(match_operand:XF 1 "nonimmediate_operand" "rf,m,rof
<>
"))]
"! TARGET_68881"
"
*
{
if (FP_REG_P (operands
[
0
]
))
{
if (FP_REG_P (operands
[
1
]
))
return
\"
fmove%.x %1,%0
\"
;
if (REG_P (operands
[
1
]
))
{
rtx xoperands
[
2
]
;
xoperands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
1
]
) + 2);
output_asm_insn (
\"
move%.l %1,%-
\"
, xoperands);
xoperands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
1
]
) + 1);
output_asm_insn (
\"
move%.l %1,%-
\"
, xoperands);
output_asm_insn (
\"
move%.l %1,%-
\"
, operands);
return
\"
fmove%.x %+,%0
\"
;
}
if (GET_CODE (operands
[
1
]
) == CONST_DOUBLE)
return
\"
fmove%.x %1,%0
\"
;
return
\"
fmove%.x %f1,%0
\"
;
}
if (FP_REG_P (operands
[
1
]
))
{
if (REG_P (operands
[
0
]
))
{
output_asm_insn (
\"
fmove%.x %f1,%-
\;
move%.l %+,%0
\"
, operands);
operands
[
0
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
output_asm_insn (
\"
move%.l %+,%0
\"
, operands);
operands
[
0
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
return
\"
move%.l %+,%0
\"
;
}
else
return
\"
fmove%.x %f1,%0
\"
;
}
return output_move_double (operands);
}
")
;; movdi can apply to fp regs in some cases
(define_insn "movdi"
;; Let's see if it really still needs to handle fp regs, and, if so, why.
...
...
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