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
73fe76e4
Commit
73fe76e4
authored
Apr 17, 1999
by
Jan Hubicka
Committed by
Richard Henderson
Apr 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* i386.c (k6_cost): Take into account the decoding time.
From-SVN: r26526
parent
d119f84c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gcc/ChangeLog
+4
-0
gcc/config/i386/i386.c
+7
-2
No files found.
gcc/ChangeLog
View file @
73fe76e4
Sat
Apr
17
19
:
22
:
38
1999
Jan
Hubicka
<
hubicka
@freesoft
.
cz
>
*
i386
.
c
(
k6_cost
)
:
Take
into
account
the
decoding
time
.
Sat
Apr
17
19
:
13
:
22
1999
Donn
Terry
<
donn
@interix
.
com
>
Sat
Apr
17
19
:
13
:
22
1999
Donn
Terry
<
donn
@interix
.
com
>
*
i386
.
h
(
PRINT_OPERAND_PUNCT_VALID_P
)
:
Allow
_
.
*
i386
.
h
(
PRINT_OPERAND_PUNCT_VALID_P
)
:
Allow
_
.
...
...
gcc/config/i386/i386.c
View file @
73fe76e4
...
@@ -100,14 +100,19 @@ struct processor_costs pentiumpro_cost = {
...
@@ -100,14 +100,19 @@ struct processor_costs pentiumpro_cost = {
17
/* cost of a divide/mod */
17
/* cost of a divide/mod */
};
};
/* We use decoding time together with execution time.
To get correct vale add 1 for short decodable, 2 for long decodable
and 4 for vector decodable instruction to execution time and divide
by two (because CPU is able to do two insns at a time). */
struct
processor_costs
k6_cost
=
{
struct
processor_costs
k6_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 */
1
,
/* variable shift costs */
1
,
/* variable shift costs */
1
,
/* constant shift costs */
1
,
/* constant shift costs */
2
,
/* cost of starting a multiply */
3
,
/* cost of starting a multiply */
0
,
/* cost of multiply per each bit set */
0
,
/* cost of multiply per each bit set */
18
/* cost of a divide/mod */
20
/* cost of a divide/mod */
};
};
struct
processor_costs
*
ix86_cost
=
&
pentium_cost
;
struct
processor_costs
*
ix86_cost
=
&
pentium_cost
;
...
...
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