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
a9ab5e00
Commit
a9ab5e00
authored
Sep 13, 1992
by
Timothy Moore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r2112
parent
a120b788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
gcc/genattrtab.c
+35
-0
No files found.
gcc/genattrtab.c
View file @
a9ab5e00
...
...
@@ -5407,6 +5407,38 @@ fancy_abort ()
{
fatal
(
"Internal gcc abort."
);
}
/* Determine if an insn has a constant number of delay slots. */
void
write_const_num_delay_slots
()
{
struct
attr_desc
*
attr
=
find_attr
(
"*num_delay_slots"
,
0
);
struct
attr_value
*
av
;
struct
insn_ent
*
ie
;
int
i
;
if
(
attr
)
{
printf
(
"int
\n
const_num_delay_slots (insn)
\n
"
);
printf
(
" rtx *insn;
\n
"
);
printf
(
"{
\n
"
);
printf
(
" switch (recog_memoized (insn))
\n
"
);
printf
(
" {
\n
"
);
for
(
av
=
attr
->
first_value
;
av
;
av
=
av
->
next
)
if
(
GET_CODE
(
av
->
value
)
==
COND
&&
av
->
num_insns
)
{
for
(
ie
=
av
->
first_insn
;
ie
;
ie
=
ie
->
next
)
if
(
ie
->
insn_code
!=
-
1
)
printf
(
" case %d:
\n
"
,
ie
->
insn_code
);
printf
(
" return 0;
\n
"
);
}
printf
(
" default:
\n
"
);
printf
(
" return 1;
\n
"
);
printf
(
" }
\n
}
\n
"
);
}
}
int
main
(
argc
,
argv
)
...
...
@@ -5574,6 +5606,9 @@ from the machine description file `md'. */\n\n");
if
(
num_units
)
write_function_unit_info
();
/* Write out constant delay slot info */
write_const_num_delay_slots
();
fflush
(
stdout
);
exit
(
ferror
(
stdout
)
!=
0
?
FATAL_EXIT_CODE
:
SUCCESS_EXIT_CODE
);
/* NOTREACHED */
...
...
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