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
519164a9
Commit
519164a9
authored
Aug 05, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(arith_reg_operand): Reject SUBREG of an invalid hard reg.
From-SVN: r12594
parent
a5049cf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
gcc/config/sh/sh.c
+10
-6
No files found.
gcc/config/sh/sh.c
View file @
519164a9
...
...
@@ -2198,13 +2198,17 @@ arith_reg_operand (op, mode)
{
if
(
register_operand
(
op
,
mode
))
{
int
regno
;
if
(
GET_CODE
(
op
)
==
REG
)
return
(
REGNO
(
op
)
!=
T_REG
&&
REGNO
(
op
)
!=
PR_REG
&&
REGNO
(
op
)
!=
FPUL_REG
&&
REGNO
(
op
)
!=
MACH_REG
&&
REGNO
(
op
)
!=
MACL_REG
);
return
1
;
regno
=
REGNO
(
op
);
else
if
(
GET_CODE
(
op
)
==
SUBREG
&&
GET_CODE
(
SUBREG_REG
(
op
))
==
REG
)
regno
=
REGNO
(
SUBREG_REG
(
op
));
else
return
1
;
return
(
regno
!=
T_REG
&&
regno
!=
PR_REG
&&
regno
!=
FPUL_REG
&&
regno
!=
MACH_REG
&&
regno
!=
MACL_REG
);
}
return
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