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
e6f948e3
Commit
e6f948e3
authored
Apr 16, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(untyped_call, blockage): New patterns.
From-SVN: r4169
parent
bc365490
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
0 deletions
+111
-0
gcc/config/alpha/alpha.md
+37
-0
gcc/config/romp/romp.md
+37
-0
gcc/config/rs6000/rs6000.md
+37
-0
No files found.
gcc/config/alpha/alpha.md
View file @
e6f948e3
...
...
@@ -2341,6 +2341,43 @@
"bsr $26,%1..ng"
[
(set_attr "type" "ibr")
]
)
;; Call subroutine returning any type.
(define_expand "untyped_call"
[
(parallel
[
(call (match_operand 0 "" "")
(const_int 0))
(match_operand 1 "" "")
(match_operand 2 "" "")])]
""
"
{
int i;
emit_call_insn (gen_call (operands
[
0
]
, const0_rtx, NULL, const0_rtx));
for (i = 0; i < XVECLEN (operands
[
2
]
, 0); i++)
{
rtx set = XVECEXP (operands
[
2
]
, 0, i);
emit_move_insn (SET_DEST (set), SET_SRC (set));
}
/
*
The optimizer does not know that the call sets the function value
registers we stored in the result block. We avoid problems by
claiming that all hard registers are used and clobbered at this
point.
*
/
emit_insn (gen_blockage ());
DONE;
}")
;; UNSPEC_VOLATILE is considered to use and clobber all hard registers and
;; all of memory. This blocks insns from being moved across this point.
(define_insn "blockage"
[
(unspec_volatile [(const_int 0)
]
0)]
""
"")
(define_insn "jump"
[
(set (pc)
(label_ref (match_operand 0 "" "")))]
...
...
gcc/config/romp/romp.md
View file @
e6f948e3
...
...
@@ -1767,6 +1767,43 @@
"bali%# r15,%1"
[
(set_attr "type" "call")
]
)
;; Call subroutine returning any type.
(define_expand "untyped_call"
[
(parallel
[
(call (match_operand 0 "" "")
(const_int 0))
(match_operand 1 "" "")
(match_operand 2 "" "")])]
""
"
{
int i;
emit_call_insn (gen_call (operands
[
0
]
, const0_rtx, NULL, const0_rtx));
for (i = 0; i < XVECLEN (operands
[
2
]
, 0); i++)
{
rtx set = XVECEXP (operands
[
2
]
, 0, i);
emit_move_insn (SET_DEST (set), SET_SRC (set));
}
/
*
The optimizer does not know that the call sets the function value
registers we stored in the result block. We avoid problems by
claiming that all hard registers are used and clobbered at this
point.
*
/
emit_insn (gen_blockage ());
DONE;
}")
;; UNSPEC_VOLATILE is considered to use and clobber all hard registers and
;; all of memory. This blocks insns from being moved across this point.
(define_insn "blockage"
[
(unspec_volatile [(const_int 0)
]
0)]
""
"")
;; No operation insn.
(define_insn "nop"
[
(const_int 0)
]
...
...
gcc/config/rs6000/rs6000.md
View file @
e6f948e3
...
...
@@ -3055,6 +3055,43 @@
"@
brl
\;
l 2,20(1)
bl %z1
\;
cror 15,15,15")
;; Call subroutine returning any type.
(define_expand "untyped_call"
[
(parallel
[
(call (match_operand 0 "" "")
(const_int 0))
(match_operand 1 "" "")
(match_operand 2 "" "")])]
""
"
{
int i;
emit_call_insn (gen_call (operands
[
0
]
, const0_rtx, NULL, const0_rtx));
for (i = 0; i < XVECLEN (operands
[
2
]
, 0); i++)
{
rtx set = XVECEXP (operands
[
2
]
, 0, i);
emit_move_insn (SET_DEST (set), SET_SRC (set));
}
/
*
The optimizer does not know that the call sets the function value
registers we stored in the result block. We avoid problems by
claiming that all hard registers are used and clobbered at this
point.
*
/
emit_insn (gen_blockage ());
DONE;
}")
;; UNSPEC_VOLATILE is considered to use and clobber all hard registers and
;; all of memory. This blocks insns from being moved across this point.
(define_insn "blockage"
[
(unspec_volatile [(const_int 0)
]
0)]
""
"")
;; Compare insns are next. Note that the RS/6000 has two types of compares,
;; signed & unsigned, and one type of branch.
...
...
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