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
e5075818
Commit
e5075818
authored
Jul 26, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold, case EQ_EXPR): Remove code that converts mod to unsigned mod;
it isn't correct for negative operands. From-SVN: r4995
parent
437b3c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/fold-const.c
+5
-0
No files found.
gcc/fold-const.c
View file @
e5075818
...
@@ -4203,6 +4203,10 @@ fold (expr)
...
@@ -4203,6 +4203,10 @@ fold (expr)
arg1
));
arg1
));
}
}
/* It would be nice to do this since it generates better code.
Unfortunately, it doesn't produce the correct result if the
first operand is negative. */
#if 0
/* If this is an NE or EQ comparison of zero against the result of a
/* If this is an NE or EQ comparison of zero against the result of a
signed MOD operation, make the MOD operation unsigned since it
signed MOD operation, make the MOD operation unsigned since it
is simpler and equivalent. */
is simpler and equivalent. */
...
@@ -4221,6 +4225,7 @@ fold (expr)
...
@@ -4221,6 +4225,7 @@ fold (expr)
return build (code, type, newmod, convert (newtype, arg1));
return build (code, type, newmod, convert (newtype, arg1));
}
}
#endif
/* If this is an NE comparison of zero with an AND of one, remove the
/* If this is an NE comparison of zero with an AND of one, remove the
comparison since the AND will give the correct value. */
comparison since the AND will give the correct value. */
...
...
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