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
262121f0
Commit
262121f0
authored
Dec 15, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(return peepholes): Add QImode and HImode move/return patterns.
From-SVN: r2876
parent
190315a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
gcc/config/sparc/sparc.md
+31
-0
No files found.
gcc/config/sparc/sparc.md
View file @
262121f0
...
...
@@ -3050,6 +3050,37 @@
;; Return peepholes. First the "normal" ones
;; ??? There are QImode, HImode, and SImode versions of this pattern.
;; It might be possible to write one more general pattern instead of three.
(define_insn ""
[
(set (match_operand:QI 0 "restore_operand" "")
(match_operand:QI 1 "arith_operand" "rI"))
(return)]
"! TARGET_EPILOGUE"
"
*
{
if (current_function_returns_struct)
return
\"
jmp %%i7+12
\;
restore %%g0,%1,%Y0
\"
;
else
return
\"
ret
\;
restore %%g0,%1,%Y0
\"
;
}"
[
(set_attr "type" "multi")
]
)
(define_insn ""
[
(set (match_operand:HI 0 "restore_operand" "")
(match_operand:HI 1 "arith_operand" "rI"))
(return)]
"! TARGET_EPILOGUE"
"
*
{
if (current_function_returns_struct)
return
\"
jmp %%i7+12
\;
restore %%g0,%1,%Y0
\"
;
else
return
\"
ret
\;
restore %%g0,%1,%Y0
\"
;
}"
[
(set_attr "type" "multi")
]
)
(define_insn ""
[
(set (match_operand:SI 0 "restore_operand" "")
(match_operand:SI 1 "arith_operand" "rI"))
...
...
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