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
668443c9
Commit
668443c9
authored
Feb 11, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_divmod): Always call expand_twoval_binop with psuedos as
targets. From-SVN: r8905
parent
ef0e53ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
gcc/expmed.c
+14
-6
No files found.
gcc/expmed.c
View file @
668443c9
...
...
@@ -3159,14 +3159,17 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
and return the result right away. */
if
(
target
==
0
)
target
=
gen_reg_rtx
(
compute_mode
);
if
(
rem_flag
)
{
remainder
=
target
;
remainder
=
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
);
quotient
=
gen_reg_rtx
(
compute_mode
);
}
else
{
quotient
=
target
;
quotient
=
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
);
remainder
=
gen_reg_rtx
(
compute_mode
);
}
...
...
@@ -3283,14 +3286,17 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
value here, and return the result right away. */
if
(
target
==
0
)
target
=
gen_reg_rtx
(
compute_mode
);
if
(
rem_flag
)
{
remainder
=
target
;
remainder
=
(
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
));
quotient
=
gen_reg_rtx
(
compute_mode
);
}
else
{
quotient
=
target
;
quotient
=
(
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
));
remainder
=
gen_reg_rtx
(
compute_mode
);
}
...
...
@@ -3384,12 +3390,14 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
target
=
gen_reg_rtx
(
compute_mode
);
if
(
rem_flag
)
{
remainder
=
target
;
remainder
=
(
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
));
quotient
=
gen_reg_rtx
(
compute_mode
);
}
else
{
quotient
=
target
;
quotient
=
(
GET_CODE
(
target
)
==
REG
?
target
:
gen_reg_rtx
(
compute_mode
));
remainder
=
gen_reg_rtx
(
compute_mode
);
}
...
...
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