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
7831ef17
Commit
7831ef17
authored
May 26, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_divmod): Correctly set CAN_CLOBBER_OP0 when we've converted OP0
to COMPUTE_MODE. From-SVN: r7349
parent
7beec59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gcc/expmed.c
+7
-4
No files found.
gcc/expmed.c
View file @
7831ef17
...
...
@@ -2439,13 +2439,16 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
modifying it. */
can_clobber_op0
=
(
GET_CODE
(
op0
)
==
REG
&&
op0
==
target
);
/* Now convert to the best mode to use.
S
how we made a copy of OP0
/* Now convert to the best mode to use.
Normally s
how we made a copy of OP0
and hence we can clobber it (we cannot use a SUBREG to widen
something. */
something), but check that the conversion wasn't a no-op due to
promotion. */
if
(
compute_mode
!=
mode
)
{
adjusted_op0
=
op0
=
convert_modes
(
compute_mode
,
mode
,
op0
,
unsignedp
);
can_clobber_op0
=
1
;
adjusted_op0
=
convert_modes
(
compute_mode
,
mode
,
op0
,
unsignedp
);
can_clobber_op0
=
!
(
GET_CODE
(
op0
)
==
SUBREG
&&
SUBREG_REG
(
op0
)
==
adjusted_op0
);
op0
=
adjusted_op0
;
op1
=
convert_modes
(
compute_mode
,
mode
,
op1
,
unsignedp
);
}
...
...
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