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
0d77cc6c
Commit
0d77cc6c
authored
Sep 02, 2008
by
Jan Hubicka
Committed by
Jan Hubicka
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
From-SVN: r139897
parent
e0978eba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/ChangeLog
+4
-0
gcc/expmed.c
+3
-3
No files found.
gcc/ChangeLog
View file @
0d77cc6c
2008
-
09
-
02
Jan
Hubicka
<
jh
@suse
.
cz
>
*
expmed
.
c
(
expand_divmod
)
:
Fix
test
of
smod_pow2_cheap
and
sdiv_pow2_cheap
2008
-
09
-
02
H
.
J
.
Lu
<
hongjiu
.
lu
@intel
.
com
>
*
expr
.
c
(
emit_group_store
)
:
Don
'
t
assert
stack
temp
mode
size
.
...
...
gcc/expmed.c
View file @
0d77cc6c
...
...
@@ -4086,8 +4086,8 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode,
goto
fail1
;
}
else
if
(
EXACT_POWER_OF_2_OR_ZERO_P
(
d
)
&&
(
rem_flag
?
smod_pow2_cheap
[
compute_mode
]
:
sdiv_pow2_cheap
[
compute_mode
])
&&
(
rem_flag
?
smod_pow2_cheap
[
speed
][
compute_mode
]
:
sdiv_pow2_cheap
[
speed
][
compute_mode
])
/* We assume that cheap metric is true if the
optab has an expander for this mode. */
&&
((
optab_handler
((
rem_flag
?
smod_optab
...
...
@@ -4107,7 +4107,7 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode,
return
gen_lowpart
(
mode
,
remainder
);
}
if
(
sdiv_pow2_cheap
[
compute_mode
]
if
(
sdiv_pow2_cheap
[
speed
][
compute_mode
]
&&
((
optab_handler
(
sdiv_optab
,
compute_mode
)
->
insn_code
!=
CODE_FOR_nothing
)
||
(
optab_handler
(
sdivmod_optab
,
compute_mode
)
->
insn_code
...
...
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