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
856b07a1
Commit
856b07a1
authored
Jan 31, 1997
by
Stan Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pentiumpro_cost): Added new cost structure for pentiumpro.
From-SVN: r13571
parent
36cf4bcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
gcc/config/i386/i386.c
+16
-5
No files found.
gcc/config/i386/i386.c
View file @
856b07a1
...
@@ -80,13 +80,23 @@ struct processor_costs i486_cost = { /* 486 specific costs */
...
@@ -80,13 +80,23 @@ struct processor_costs i486_cost = { /* 486 specific costs */
struct
processor_costs
pentium_cost
=
{
struct
processor_costs
pentium_cost
=
{
1
,
/* cost of an add instruction */
1
,
/* cost of an add instruction */
1
,
/* cost of a lea instruction */
1
,
/* cost of a lea instruction */
3
,
/* variable shift costs */
4
,
/* variable shift costs */
1
,
/* constant shift costs */
1
,
/* constant shift costs */
1
2
,
/* cost of starting a multiply */
1
1
,
/* cost of starting a multiply */
1
,
/* cost of multiply per each bit set */
0
,
/* cost of multiply per each bit set */
25
/* cost of a divide/mod */
25
/* cost of a divide/mod */
};
};
struct
processor_costs
pentiumpro_cost
=
{
1
,
/* cost of an add instruction */
1
,
/* cost of a lea instruction */
3
,
/* variable shift costs */
1
,
/* constant shift costs */
4
,
/* cost of starting a multiply */
0
,
/* cost of multiply per each bit set */
17
/* cost of a divide/mod */
};
struct
processor_costs
*
ix86_cost
=
&
pentium_cost
;
struct
processor_costs
*
ix86_cost
=
&
pentium_cost
;
#define AT_BP(mode) (gen_rtx (MEM, (mode), frame_pointer_rtx))
#define AT_BP(mode) (gen_rtx (MEM, (mode), frame_pointer_rtx))
...
@@ -182,8 +192,8 @@ override_options ()
...
@@ -182,8 +192,8 @@ override_options ()
{
PROCESSOR_I486_STRING
,
PROCESSOR_I486
,
&
i486_cost
,
0
,
0
},
{
PROCESSOR_I486_STRING
,
PROCESSOR_I486
,
&
i486_cost
,
0
,
0
},
{
PROCESSOR_I586_STRING
,
PROCESSOR_PENTIUM
,
&
pentium_cost
,
0
,
0
},
{
PROCESSOR_I586_STRING
,
PROCESSOR_PENTIUM
,
&
pentium_cost
,
0
,
0
},
{
PROCESSOR_PENTIUM_STRING
,
PROCESSOR_PENTIUM
,
&
pentium_cost
,
0
,
0
},
{
PROCESSOR_PENTIUM_STRING
,
PROCESSOR_PENTIUM
,
&
pentium_cost
,
0
,
0
},
{
PROCESSOR_I686_STRING
,
PROCESSOR_PENTIUMPRO
,
&
pentium_cost
,
0
,
0
},
{
PROCESSOR_I686_STRING
,
PROCESSOR_PENTIUMPRO
,
&
pentium
pro
_cost
,
0
,
0
},
{
PROCESSOR_PENTIUMPRO_STRING
,
PROCESSOR_PENTIUMPRO
,
&
pentium_cost
,
0
,
0
}};
{
PROCESSOR_PENTIUMPRO_STRING
,
PROCESSOR_PENTIUMPRO
,
&
pentium
pro
_cost
,
0
,
0
}};
int
ptt_size
=
sizeof
(
processor_target_table
)
/
sizeof
(
struct
ptt
);
int
ptt_size
=
sizeof
(
processor_target_table
)
/
sizeof
(
struct
ptt
);
...
@@ -246,6 +256,7 @@ override_options ()
...
@@ -246,6 +256,7 @@ override_options ()
if
(
!
strcmp
(
ix86_cpu_string
,
processor_target_table
[
j
].
name
))
if
(
!
strcmp
(
ix86_cpu_string
,
processor_target_table
[
j
].
name
))
{
{
ix86_cpu
=
processor_target_table
[
j
].
processor
;
ix86_cpu
=
processor_target_table
[
j
].
processor
;
ix86_cost
=
processor_target_table
[
j
].
cost
;
if
(
i
>
j
&&
(
int
)
ix86_arch
>=
(
int
)
PROCESSOR_PENTIUMPRO
)
if
(
i
>
j
&&
(
int
)
ix86_arch
>=
(
int
)
PROCESSOR_PENTIUMPRO
)
error
(
"-mcpu=%s does not support -march=%s"
,
ix86_cpu_string
,
ix86_arch_string
);
error
(
"-mcpu=%s does not support -march=%s"
,
ix86_cpu_string
,
ix86_arch_string
);
...
...
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