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
ffa3ce53
Commit
ffa3ce53
authored
Oct 20, 2017
by
Jan Hubicka
Committed by
Jan Hubicka
Oct 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* x86-tune-costs.h (core_cost): Fix div, move and sqrt latencies.
From-SVN: r253934
parent
1031b577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
+24
-17
gcc/ChangeLog
+4
-0
gcc/config/i386/x86-tune-costs.h
+20
-17
No files found.
gcc/ChangeLog
View file @
ffa3ce53
2017
-
10
-
19
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
x86
-
tune
-
costs
.
h
(
core_cost
):
Fix
div
,
move
and
sqrt
latencies
.
2017
-
10
-
20
Richard
Biener
<
rguenther
@
suse
.
de
>
PR
tree
-
optimization
/
82603
gcc/config/i386/x86-tune-costs.h
View file @
ffa3ce53
...
...
@@ -2305,38 +2305,40 @@ struct processor_costs core_cost = {
COSTS_N_INSNS
(
4
),
/* HI */
COSTS_N_INSNS
(
3
),
/* SI */
COSTS_N_INSNS
(
4
),
/* DI */
COSTS_N_INSNS
(
2
)},
/* other */
COSTS_N_INSNS
(
4
)},
/* other */
0
,
/* cost of multiply per each bit set */
{
COSTS_N_INSNS
(
18
),
/* cost of a divide/mod for QI */
COSTS_N_INSNS
(
26
),
/* HI */
COSTS_N_INSNS
(
42
),
/* SI */
COSTS_N_INSNS
(
74
),
/* DI */
COSTS_N_INSNS
(
74
)},
/* other */
{
COSTS_N_INSNS
(
8
),
/* cost of a divide/mod for QI */
COSTS_N_INSNS
(
8
),
/* HI */
/* 8-11 */
COSTS_N_INSNS
(
11
),
/* SI */
/* 24-81 */
COSTS_N_INSNS
(
81
),
/* DI */
COSTS_N_INSNS
(
81
)},
/* other */
COSTS_N_INSNS
(
1
),
/* cost of movsx */
COSTS_N_INSNS
(
1
),
/* cost of movzx */
8
,
/* "large" insn */
17
,
/* MOVE_RATIO */
4
,
/* cost for loading QImode using movzbl */
6
,
/* cost for loading QImode using movzbl */
{
4
,
4
,
4
},
/* cost of loading integer registers
in QImode, HImode and SImode.
Relative to reg-reg move (2). */
{
4
,
4
,
4
},
/* cost of storing integer registers */
4
,
/* cost of reg,reg fld/fst */
{
12
,
12
,
12
},
/* cost of loading fp registers
{
6
,
6
,
6
},
/* cost of storing integer registers */
2
,
/* cost of reg,reg fld/fst */
{
6
,
6
,
8
},
/* cost of loading fp registers
in SFmode, DFmode and XFmode */
{
6
,
6
,
8
},
/* cost of storing fp registers
{
8
,
6
,
10
},
/* cost of storing fp registers
in SFmode, DFmode and XFmode */
2
,
/* cost of moving MMX register */
{
8
,
8
},
/* cost of loading MMX registers
{
6
,
6
},
/* cost of loading MMX registers
in SImode and DImode */
{
8
,
8
},
/* cost of storing MMX registers
{
6
,
6
},
/* cost of storing MMX registers
in SImode and DImode */
2
,
/* cost of moving SSE register */
{
8
,
8
,
8
},
/* cost of loading SSE registers
{
6
,
6
,
6
},
/* cost of loading SSE registers
in SImode, DImode and TImode */
{
8
,
8
,
8
},
/* cost of storing SSE registers
{
6
,
6
,
6
},
/* cost of storing SSE registers
in SImode, DImode and TImode */
5
,
/* MMX or SSE register to integer */
2
,
/* MMX or SSE register to integer */
64
,
/* size of l1 cache. */
512
,
/* size of l2 cache. */
64
,
/* size of prefetch block */
...
...
@@ -2345,10 +2347,11 @@ struct processor_costs core_cost = {
3
,
/* Branch cost */
COSTS_N_INSNS
(
3
),
/* cost of FADD and FSUB insns. */
COSTS_N_INSNS
(
5
),
/* cost of FMUL instruction. */
/* 10-24 */
COSTS_N_INSNS
(
24
),
/* cost of FDIV instruction. */
COSTS_N_INSNS
(
1
),
/* cost of FABS instruction. */
COSTS_N_INSNS
(
1
),
/* cost of FCHS instruction. */
COSTS_N_INSNS
(
2
4
),
/* cost of FSQRT instruction. */
COSTS_N_INSNS
(
2
3
),
/* cost of FSQRT instruction. */
COSTS_N_INSNS
(
1
),
/* cost of cheap SSE instruction. */
COSTS_N_INSNS
(
3
),
/* cost of ADDSS/SD SUBSS/SD insns. */
...
...
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