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
9ce71c6f
Commit
9ce71c6f
authored
Oct 19, 1999
by
Bernd Schmidt
Committed by
Bernd Schmidt
Oct 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm.c: Verify modes on operands in predicates
From-SVN: r30088
parent
3a2ea258
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
gcc/ChangeLog
+7
-0
gcc/config/arm/arm.c
+18
-4
No files found.
gcc/ChangeLog
View file @
9ce71c6f
Tue
Oct
19
18
:
42
:
58
1999
Bernd
Schmidt
<
bernds
@cygnus
.
co
.
uk
>
*
arm
.
c
(
fpu_rhs_operand
)
:
Verify
modes
.
(
fpu_add_operand
)
:
Likewise
.
(
di_operand
)
:
Likewise
.
(
soft_df_operand
)
:
Likewise
.
Tue
Oct
19
15
:
26
:
11
1999
Richard
Earnshaw
(
rearnsha
@arm
.
com
)
*
arm
.
c
(
arm_return_in_memory
)
:
APCS
rules
state
that
the
elements
...
...
gcc/config/arm/arm.c
View file @
9ce71c6f
...
...
@@ -2213,8 +2213,12 @@ fpu_rhs_operand (op, mode)
{
if
(
s_register_operand
(
op
,
mode
))
return
TRUE
;
else
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
)
return
(
const_double_rtx_ok_for_fpu
(
op
));
if
(
GET_MODE
(
op
)
!=
mode
&&
mode
!=
VOIDmode
)
return
FALSE
;
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
)
return
const_double_rtx_ok_for_fpu
(
op
);
return
FALSE
;
}
...
...
@@ -2226,7 +2230,11 @@ fpu_add_operand (op, mode)
{
if
(
s_register_operand
(
op
,
mode
))
return
TRUE
;
else
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
)
if
(
GET_MODE
(
op
)
!=
mode
&&
mode
!=
VOIDmode
)
return
FALSE
;
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
)
return
(
const_double_rtx_ok_for_fpu
(
op
)
||
neg_const_double_rtx_ok_for_fpu
(
op
));
...
...
@@ -2261,6 +2269,9 @@ di_operand (op, mode)
if
(
s_register_operand
(
op
,
mode
))
return
TRUE
;
if
(
mode
!=
VOIDmode
&&
GET_MODE
(
op
)
!=
VOIDmode
&&
GET_MODE
(
op
)
!=
DImode
)
return
FALSE
;
if
(
GET_CODE
(
op
)
==
SUBREG
)
op
=
SUBREG_REG
(
op
);
...
...
@@ -2291,9 +2302,12 @@ soft_df_operand (op, mode)
if
(
s_register_operand
(
op
,
mode
))
return
TRUE
;
if
(
mode
!=
VOIDmode
&&
GET_MODE
(
op
)
!=
mode
)
return
FALSE
;
if
(
GET_CODE
(
op
)
==
SUBREG
)
op
=
SUBREG_REG
(
op
);
switch
(
GET_CODE
(
op
))
{
case
CONST_DOUBLE
:
...
...
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