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
ba8d277a
Commit
ba8d277a
authored
Jul 14, 2018
by
Paul Koning
Committed by
Paul Koning
Jul 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/pdp11/pdp11.c (pdp11_rtx_costs): Bugfixes.
From-SVN: r262659
parent
025acb59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
gcc/ChangeLog
+4
-0
gcc/config/pdp11/pdp11.c
+18
-0
No files found.
gcc/ChangeLog
View file @
ba8d277a
2018-07-14 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11.c (pdp11_rtx_costs): Bugfixes.
2018-07-13 Jan Hubicka <hubicka@ucw.cz>
* lto-streamer-out.c (copy_function_or_variable): Dump info about
...
...
gcc/config/pdp11/pdp11.c
View file @
ba8d277a
...
...
@@ -1014,6 +1014,7 @@ pdp11_rtx_costs (rtx x, machine_mode mode, int outer_code,
const
int
code
=
GET_CODE
(
x
);
const
int
asize
=
(
mode
==
QImode
)
?
2
:
GET_MODE_SIZE
(
mode
);
rtx
src
,
dest
;
const
char
*
fmt
;
switch
(
code
)
{
...
...
@@ -1035,12 +1036,29 @@ pdp11_rtx_costs (rtx x, machine_mode mode, int outer_code,
*
total
=
pdp11_addr_cost
(
x
,
mode
,
ADDR_SPACE_GENERIC
,
speed
);
return
true
;
}
if
(
GET_RTX_LENGTH
(
code
)
==
0
)
{
if
(
speed
)
*
total
=
0
;
else
*
total
=
2
;
return
true
;
}
/* Pick up source and dest. We don't necessarily use the standard
recursion in rtx_costs to figure the cost, because that would
count the destination operand twice for three-operand insns.
Also, this way we can catch special cases like move of zero, or
add one. */
fmt
=
GET_RTX_FORMAT
(
code
);
if
(
fmt
[
0
]
!=
'e'
||
(
GET_RTX_LENGTH
(
code
)
>
1
&&
fmt
[
1
]
!=
'e'
))
{
if
(
speed
)
*
total
=
0
;
else
*
total
=
2
;
return
true
;
}
if
(
GET_RTX_LENGTH
(
code
)
>
1
)
src
=
XEXP
(
x
,
1
);
dest
=
XEXP
(
x
,
0
);
...
...
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