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
ba9b1a63
Commit
ba9b1a63
authored
Apr 23, 2014
by
Kyrylo Tkachov
Committed by
Kyrylo Tkachov
Apr 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Handle FMA code in rtx costs.
* config/arm/arm.c (arm_new_rtx_costs): Handle FMA. From-SVN: r209701
parent
da4cfeac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
gcc/ChangeLog
+4
-0
gcc/config/arm/arm.c
+30
-0
No files found.
gcc/ChangeLog
View file @
ba9b1a63
2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
2014-04-23 Richard Biener <rguenther@suse.de>
* Makefile.in (OBJS): Remove loop-unswitch.o.
...
...
gcc/config/arm/arm.c
View file @
ba9b1a63
...
...
@@ -10635,6 +10635,36 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
*
cost
=
LIBCALL_COST
(
1
);
return
false
;
case
FMA
:
if
(
TARGET_32BIT
&&
TARGET_HARD_FLOAT
&&
TARGET_FMA
)
{
rtx
op0
=
XEXP
(
x
,
0
);
rtx
op1
=
XEXP
(
x
,
1
);
rtx
op2
=
XEXP
(
x
,
2
);
*
cost
=
COSTS_N_INSNS
(
1
);
/* vfms or vfnma. */
if
(
GET_CODE
(
op0
)
==
NEG
)
op0
=
XEXP
(
op0
,
0
);
/* vfnms or vfnma. */
if
(
GET_CODE
(
op2
)
==
NEG
)
op2
=
XEXP
(
op2
,
0
);
*
cost
+=
rtx_cost
(
op0
,
FMA
,
0
,
speed_p
);
*
cost
+=
rtx_cost
(
op1
,
FMA
,
1
,
speed_p
);
*
cost
+=
rtx_cost
(
op2
,
FMA
,
2
,
speed_p
);
if
(
speed_p
)
*
cost
+=
extra_cost
->
fp
[
mode
==
DFmode
].
fma
;
return
true
;
}
*
cost
=
LIBCALL_COST
(
3
);
return
false
;
case
FIX
:
case
UNSIGNED_FIX
:
if
(
TARGET_HARD_FLOAT
)
...
...
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