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
51bb310d
Commit
51bb310d
authored
Oct 17, 2013
by
Marcus Shawcroft
Committed by
Marcus Shawcroft
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AArch64] Fix preferred_reload_class for regclass STACK_REG.
From-SVN: r203778
parent
a115cf9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
gcc/ChangeLog
+5
-0
gcc/config/aarch64/aarch64.c
+10
-1
No files found.
gcc/ChangeLog
View file @
51bb310d
2013
-
10
-
17
Marcus
Shawcroft
<
marcus
.
shawcroft
@
arm
.
com
>
*
config
/
aarch64
/
aarch64
.
c
(
aarch64_preferred_reload_class
):
Adjust
handling
of
STACK_REG
.
2013
-
10
-
17
Richard
Biener
<
rguenther
@
suse
.
de
>
PR
tree
-
optimization
/
58143
...
...
gcc/config/aarch64/aarch64.c
View file @
51bb310d
...
...
@@ -4219,9 +4219,18 @@ aarch64_class_max_nregs (reg_class_t regclass, enum machine_mode mode)
static
reg_class_t
aarch64_preferred_reload_class
(
rtx
x
,
reg_class_t
regclass
)
{
if
(
regclass
==
POINTER_REGS
||
regclass
==
STACK_REG
)
if
(
regclass
==
POINTER_REGS
)
return
GENERAL_REGS
;
if
(
regclass
==
STACK_REG
)
{
if
(
REG_P
(
x
)
&&
reg_class_subset_p
(
REGNO_REG_CLASS
(
REGNO
(
x
)),
POINTER_REGS
))
return
regclass
;
return
NO_REGS
;
}
/* If it's an integer immediate that MOVI can't handle, then
FP_REGS is not an option, so we return NO_REGS instead. */
if
(
CONST_INT_P
(
x
)
&&
reg_class_subset_p
(
regclass
,
FP_REGS
)
...
...
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