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
4c6fd544
Commit
4c6fd544
authored
Jun 30, 2004
by
J"orn Rennecke
Committed by
Joern Rennecke
Jun 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expmed.c (expand_smod_pow2): Fix sign of mask.
From-SVN: r83905
parent
807a7d14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/ChangeLog
+4
-0
gcc/expmed.c
+1
-1
No files found.
gcc/ChangeLog
View file @
4c6fd544
2004-06-30 J"orn Rennecke <joern.rennecke@superh.com>
* expmed.c (expand_smod_pow2): Fix sign of mask.
2004-06-29 Diego Novillo <dnovillo@redhat.com>
2004-06-29 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant
* tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant
...
...
gcc/expmed.c
View file @
4c6fd544
...
@@ -3124,7 +3124,7 @@ expand_smod_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d)
...
@@ -3124,7 +3124,7 @@ expand_smod_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d)
can avoid an explicit compare operation in the following comparison
can avoid an explicit compare operation in the following comparison
against zero. */
against zero. */
mask
=
(
HOST_WIDE_INT
)
1
<<
(
GET_MODE_BITSIZE
(
mode
)
-
1
)
mask
=
(
HOST_WIDE_INT
)
-
1
<<
(
GET_MODE_BITSIZE
(
mode
)
-
1
)
|
(((
HOST_WIDE_INT
)
1
<<
logd
)
-
1
);
|
(((
HOST_WIDE_INT
)
1
<<
logd
)
-
1
);
temp
=
expand_binop
(
mode
,
and_optab
,
op0
,
GEN_INT
(
mask
),
result
,
temp
=
expand_binop
(
mode
,
and_optab
,
op0
,
GEN_INT
(
mask
),
result
,
...
...
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