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
78b583fe
Commit
78b583fe
authored
Nov 26, 2001
by
Aldy Hernandez
Committed by
Aldy Hernandez
Nov 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regclass.c (choose_hard_reg_mode): Handle vector arguments.
From-SVN: r47338
parent
3cc9a32f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gcc/ChangeLog
+4
-0
gcc/regclass.c
+20
-0
No files found.
gcc/ChangeLog
View file @
78b583fe
2001
-
11
-
25
Aldy
Hernandez
<
aldyh
@redhat
.
com
>
*
regclass
.
c
(
choose_hard_reg_mode
)
:
Handle
vector
arguments
.
2001
-
11
-
26
Alan
Modra
<
amodra
@bigpond
.
net
.
au
>
*
final
.
c
:
(
insn_lengths
)
:
Make
it
an
int
*
,
so
that
large
jump
...
...
gcc/regclass.c
View file @
78b583fe
...
...
@@ -713,6 +713,26 @@ choose_hard_reg_mode (regno, nregs)
if
(
found_mode
!=
VOIDmode
)
return
found_mode
;
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_VECTOR_FLOAT
);
mode
!=
VOIDmode
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
HARD_REGNO_NREGS
(
regno
,
mode
)
==
nregs
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
))
found_mode
=
mode
;
if
(
found_mode
!=
VOIDmode
)
return
found_mode
;
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_VECTOR_INT
);
mode
!=
VOIDmode
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
HARD_REGNO_NREGS
(
regno
,
mode
)
==
nregs
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
))
found_mode
=
mode
;
if
(
found_mode
!=
VOIDmode
)
return
found_mode
;
/* Iterate over all of the CCmodes. */
for
(
m
=
(
unsigned
int
)
CCmode
;
m
<
(
unsigned
int
)
NUM_MACHINE_MODES
;
++
m
)
{
...
...
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