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
5d55ba75
Commit
5d55ba75
authored
Jul 02, 1992
by
Tom Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(null_prologue): Renamed from null_epilogue.
(condition_value): New function. From-SVN: r1385
parent
b6ecac21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
gcc/config/m88k/m88k.c
+35
-4
No files found.
gcc/config/m88k/m88k.c
View file @
5d55ba75
...
@@ -46,7 +46,7 @@ extern char *ctime ();
...
@@ -46,7 +46,7 @@ extern char *ctime ();
extern
int
flag_traditional
;
extern
int
flag_traditional
;
extern
FILE
*
asm_out_file
;
extern
FILE
*
asm_out_file
;
static
char
out_sccs_id
[]
=
"@(#)m88k.c 2.2.
3.6 29 Jun 1992 16:06:14
"
;
static
char
out_sccs_id
[]
=
"@(#)m88k.c 2.2.
6.6 02 Jul 1992 06:06:08
"
;
static
char
tm_sccs_id
[]
=
TM_SCCS_ID
;
static
char
tm_sccs_id
[]
=
TM_SCCS_ID
;
char
*
m88k_pound_sign
=
""
;
/* Either # for SVR4 or empty for SVR3 */
char
*
m88k_pound_sign
=
""
;
/* Either # for SVR4 or empty for SVR3 */
...
@@ -93,6 +93,28 @@ classify_integer (mode, value)
...
@@ -93,6 +93,28 @@ classify_integer (mode, value)
return
m88k_oru_or
;
return
m88k_oru_or
;
}
}
/* Return the bit number in a compare word corresponding to CONDITION. */
int
condition_value
(
condition
)
rtx
condition
;
{
switch
(
GET_CODE
(
condition
))
{
case
EQ
:
return
2
;
case
NE
:
return
3
;
case
GT
:
return
4
;
case
LE
:
return
5
;
case
LT
:
return
6
;
case
GE
:
return
7
;
case
GTU
:
return
8
;
case
LEU
:
return
9
;
case
LTU
:
return
10
;
case
GEU
:
return
11
;
default
:
abort
();
}
}
int
int
integer_ok_for_set
(
value
)
integer_ok_for_set
(
value
)
register
unsigned
value
;
register
unsigned
value
;
...
@@ -1664,10 +1686,10 @@ m88k_layout_frame ()
...
@@ -1664,10 +1686,10 @@ m88k_layout_frame ()
}
}
}
}
/* Return true if this function is known to have a null
epi
logue. */
/* Return true if this function is known to have a null
pro
logue. */
int
int
null_
epi
logue
()
null_
pro
logue
()
{
{
if
(
!
reload_completed
)
if
(
!
reload_completed
)
return
0
;
return
0
;
...
@@ -1786,7 +1808,7 @@ m88k_expand_prologue ()
...
@@ -1786,7 +1808,7 @@ m88k_expand_prologue ()
emit_move_insn
(
return_reg
,
temp_reg
);
emit_move_insn
(
return_reg
,
temp_reg
);
}
}
if
(
profile_flag
||
profile_block_flag
)
if
(
profile_flag
||
profile_block_flag
)
emit_insn
(
gen_
profiler
());
emit_insn
(
gen_
blockage
());
}
}
/* This function generates the assembly code for function exit,
/* This function generates the assembly code for function exit,
...
@@ -1811,9 +1833,18 @@ m88k_end_epilogue (stream, size)
...
@@ -1811,9 +1833,18 @@ m88k_end_epilogue (stream, size)
FILE
*
stream
;
FILE
*
stream
;
int
size
;
int
size
;
{
{
rtx
insn
=
get_last_insn
();
if
(
TARGET_OCS_DEBUG_INFO
&&
!
epilogue_marked
)
if
(
TARGET_OCS_DEBUG_INFO
&&
!
epilogue_marked
)
PUT_OCS_FUNCTION_END
(
stream
);
PUT_OCS_FUNCTION_END
(
stream
);
/* If the last insn isn't a BARRIER, we must write a return insn. This
should only happen if the function has no prologe and no body. */
if
(
GET_CODE
(
insn
)
==
NOTE
)
insn
=
prev_nonnote_insn
(
insn
);
if
(
insn
==
0
||
GET_CODE
(
insn
)
!=
BARRIER
)
fprintf
(
stream
,
"
\t
jmp
\t
%s
\n
"
,
reg_names
[
1
]);
output_short_branch_defs
(
stream
);
output_short_branch_defs
(
stream
);
fprintf
(
stream
,
"
\n
"
);
fprintf
(
stream
,
"
\n
"
);
...
...
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