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
dbbe6445
Commit
dbbe6445
authored
31 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_binary_operation, case SMAX): Cast to unsiged HOST_WIDE_INT
instead of unsigned int. From-SVN: r4259
parent
adb7a1cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
gcc/cse.c
+2
-1
No files found.
gcc/cse.c
View file @
dbbe6445
...
...
@@ -3716,7 +3716,8 @@ simplify_binary_operation (code, mode, op0, op1)
case
SMAX
:
if
(
width
<=
HOST_BITS_PER_WIDE_INT
&&
GET_CODE
(
op1
)
==
CONST_INT
&&
INTVAL
(
op1
)
==
(
unsigned
)
GET_MODE_MASK
(
mode
)
>>
1
&&
(
INTVAL
(
op1
)
==
(
unsigned
HOST_WIDE_INT
)
GET_MODE_MASK
(
mode
)
>>
1
)
&&
!
side_effects_p
(
op0
))
return
op1
;
else
if
(
rtx_equal_p
(
op0
,
op1
)
&&
!
side_effects_p
(
op0
))
...
...
This diff is collapsed.
Click to expand it.
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