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
038c2f50
Commit
038c2f50
authored
Aug 23, 2001
by
Lars Brinkhoff
Committed by
Nick Clifton
Aug 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused function
From-SVN: r45131
parent
88c1082b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
71 deletions
+9
-71
gcc/ChangeLog
+7
-0
gcc/config/mcore/mcore-protos.h
+0
-1
gcc/config/mcore/mcore.c
+0
-64
gcc/config/mcore/mcore.h
+0
-4
gcc/config/mcore/mcore.md
+2
-2
No files found.
gcc/ChangeLog
View file @
038c2f50
2001
-
08
-
23
Lars
Brinkhoff
<
lars
@nocrew
.
org
>
2001
-
08
-
23
Lars
Brinkhoff
<
lars
@nocrew
.
org
>
*
config
/
mcore
/
mcore
.
h
(
MACHINE_DEPENDENT_SIMPLIFY
)
:
Remove
.
*
config
/
mcore
/
mcore
.
c
(
mcore_dependent_simplify_rtx
)
:
Likewise
.
*
config
/
mcore
/
mcore
-
protos
.
h
(
mcore_dependent_simplify_rtx
)
:
Remove
prototype
.
2001
-
08
-
23
Lars
Brinkhoff
<
lars
@nocrew
.
org
>
*
genconstants
.
c
,
genpreds
.
c
,
libfuncs
.
h
,
optabs
.
h
,
rtl
-
error
.
h
:
*
genconstants
.
c
,
genpreds
.
c
,
libfuncs
.
h
,
optabs
.
h
,
rtl
-
error
.
h
:
replace
"GNU CC"
with
"GCC"
.
replace
"GNU CC"
with
"GCC"
.
...
...
gcc/config/mcore/mcore-protos.h
View file @
038c2f50
...
@@ -63,7 +63,6 @@ extern int mcore_is_dead PARAMS ((rtx, rtx));
...
@@ -63,7 +63,6 @@ extern int mcore_is_dead PARAMS ((rtx, rtx));
extern
int
mcore_expand_insv
PARAMS
((
rtx
*
));
extern
int
mcore_expand_insv
PARAMS
((
rtx
*
));
extern
int
mcore_modify_comparison
PARAMS
((
RTX_CODE
));
extern
int
mcore_modify_comparison
PARAMS
((
RTX_CODE
));
extern
void
mcore_expand_block_move
PARAMS
((
rtx
,
rtx
,
rtx
*
));
extern
void
mcore_expand_block_move
PARAMS
((
rtx
,
rtx
,
rtx
*
));
extern
rtx
mcore_dependent_simplify_rtx
PARAMS
((
rtx
,
int
,
int
,
int
,
int
*
));
extern
void
mcore_dependent_reorg
PARAMS
((
rtx
));
extern
void
mcore_dependent_reorg
PARAMS
((
rtx
));
extern
int
mcore_const_costs
PARAMS
((
rtx
,
RTX_CODE
));
extern
int
mcore_const_costs
PARAMS
((
rtx
,
RTX_CODE
));
extern
int
mcore_and_cost
PARAMS
((
rtx
));
extern
int
mcore_and_cost
PARAMS
((
rtx
));
...
...
gcc/config/mcore/mcore.c
View file @
038c2f50
...
@@ -2615,70 +2615,6 @@ mcore_output_jump_label_table ()
...
@@ -2615,70 +2615,6 @@ mcore_output_jump_label_table ()
return
""
;
return
""
;
}
}
#if 0 /* XXX temporarily suppressed until I have time to look at what this code does. */
/* We need these below. They use information stored in tables to figure out
what values are in what registers, etc. This is okay, since these tables
are valid at the time mcore_dependent_simplify_rtx() is invoked. Don't
use them anywhere else. BRC */
extern unsigned HOST_WIDE_INT nonzero_bits PARAMS ((rtx, enum machine_mode));
extern int num_sign_bit_copies PARAMS ((Rtx, enum machine_mode));
/* Do machine dependent simplifications: see simplify_rtx() in combine.c.
GENERAL_SIMPLIFY controls whether general machine independent
simplifications should be tried after machine dependent ones. Thus,
we can filter out certain simplifications and keep the simplify_rtx()
from changing things that we just simplified in a machine dependent
fashion. This is experimental. BRC */
rtx
mcore_dependent_simplify_rtx (x, int_op0_mode, last, in_dest, general_simplify)
rtx x;
int int_op0_mode;
int last;
int in_dest;
int * general_simplify;
{
enum machine_mode mode = GET_MODE (x);
enum rtx_code code = GET_CODE (x);
/* Always simplify unless explicitly asked not to. */
* general_simplify = 1;
if (code == IF_THEN_ELSE)
{
int i;
rtx cond = XEXP(x, 0);
rtx true_rtx = XEXP(x, 1);
rtx false_rtx = XEXP(x, 2);
enum rtx_code true_code = GET_CODE (cond);
/* On the mcore, when doing -mcmov-one, we don't want to simplify:
(if_then_else (ne A 0) C1 0)
if it would be turned into a shift by simplify_if_then_else().
instead, leave it alone so that it will collapse into a conditional
move. besides, at least for the mcore, doing this simplification does
not typically help. see combine.c, line 4217. BRC */
if (true_code == NE && XEXP (cond, 1) == const0_rtx
&& false_rtx == const0_rtx && GET_CODE (true_rtx) == CONST_INT
&& ((1 == nonzero_bits (XEXP (cond, 0), mode)
&& (i = exact_log2 (INTVAL (true_rtx))) >= 0)
|| ((num_sign_bit_copies (XEXP (cond, 0), mode)
== GET_MODE_BITSIZE (mode))
&& (i = exact_log2 (- INTVAL (true_rtx))) >= 0)))
{
*general_simplify = 0;
return x;
}
}
return x;
}
#endif
/* Check whether insn is a candidate for a conditional. */
/* Check whether insn is a candidate for a conditional. */
static
cond_type
static
cond_type
...
...
gcc/config/mcore/mcore.h
View file @
038c2f50
...
@@ -1379,10 +1379,6 @@ extern long mcore_current_compilation_timestamp;
...
@@ -1379,10 +1379,6 @@ extern long mcore_current_compilation_timestamp;
/* This is to handle loads from the constant pool. */
/* This is to handle loads from the constant pool. */
#define MACHINE_DEPENDENT_REORG(X) mcore_dependent_reorg (X)
#define MACHINE_DEPENDENT_REORG(X) mcore_dependent_reorg (X)
/* This handles MCore dependent rtl simplifications. */
#define MACHINE_DEPENDENT_SIMPLIFY(X,M,L,I,S) \
mcore_dependent_simplify_rtx (X, M, L, I, S)
#define PREDICATE_CODES \
#define PREDICATE_CODES \
{ "mcore_arith_reg_operand", { REG, SUBREG }}, \
{ "mcore_arith_reg_operand", { REG, SUBREG }}, \
{ "mcore_general_movsrc_operand", { MEM, CONST_INT, REG, SUBREG }},\
{ "mcore_general_movsrc_operand", { MEM, CONST_INT, REG, SUBREG }},\
...
...
gcc/config/mcore/mcore.md
View file @
038c2f50
...
@@ -1179,9 +1179,9 @@
...
@@ -1179,9 +1179,9 @@
int low, high;
int low, high;
if (TARGET_LITTLE_END)
if (TARGET_LITTLE_END)
low = 0, high =
1
;
low = 0, high =
4
;
else
else
low =
1
, high = 0;
low =
4
, high = 0;
emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_SUBREG (SImode, operands[0], low),
emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_SUBREG (SImode, operands[0], low),
operands[1]));
operands[1]));
...
...
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