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
29d40fa4
Commit
29d40fa4
authored
Nov 10, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_divmod): If rem_flag, always force op0 to a register.
From-SVN: r6053
parent
3fc2151d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/expmed.c
+4
-3
No files found.
gcc/expmed.c
View file @
29d40fa4
...
...
@@ -2403,8 +2403,9 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
||
code
==
ROUND_MOD_EXPR
||
code
==
ROUND_DIV_EXPR
)
{
/* If we want the remainder, we may need to use OP0, so make sure
it and ADJUSTED_OP0 are in different registers. If we want to
preserve subexpressions, make sure OP0 is in a register.
it and ADJUSTED_OP0 are in different registers. We force OP0
to a register in case it has any queued subexpressions, because
emit_cmp_insn will call emit_queue.
If we don't want the remainder, we aren't going to use OP0 anymore.
However, if we cannot clobber OP0 (and hence ADJUSTED_OP0), we must
...
...
@@ -2414,7 +2415,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
CAN_CLOBBER_OP0 will be zero and we know that OP0 cannot
equal TARGET. */
if
(
rem_flag
&&
preserve_subexpressions_p
()
)
if
(
rem_flag
)
op0
=
force_reg
(
compute_mode
,
op0
);
if
(
!
can_clobber_op0
)
...
...
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