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
fca59ed2
Commit
fca59ed2
authored
Sep 15, 2005
by
Michael Matz
Committed by
Michael Matz
Sep 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
From-SVN: r104298
parent
fd312e90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+4
-0
gcc/tree-vrp.c
+4
-2
No files found.
gcc/ChangeLog
View file @
fca59ed2
2005
-
09
-
15
Michael
Matz
<
matz
@suse
.
de
>
*
tree
-
vrp
.
c
(
vrp_int_const_binop
<
MINUS_EXPR
>
)
:
Handle
0
-
-
INF
.
2005
-
09
-
14
Daniel
Berlin
<
dberlin
@dberlin
.
org
>
PR
tree
-
optimization
/
23835
...
...
gcc/tree-vrp.c
View file @
fca59ed2
...
...
@@ -956,8 +956,10 @@ vrp_int_const_binop (enum tree_code code, tree val1, tree val2)
/* For subtraction, the operands must be of different
signs to yield an overflow. Its sign is therefore
that of the first operand or the opposite of that
of the second operand. */
||
(
code
==
MINUS_EXPR
&&
sgn1
>
0
)
of the second operand. A first operand of 0 counts
as positive here, for the corner case 0 - (-INF),
which overflows, but must yield +INF. */
||
(
code
==
MINUS_EXPR
&&
sgn1
>=
0
)
/* For division, the only case is -INF / -1 = +INF. */
||
code
==
TRUNC_DIV_EXPR
||
code
==
FLOOR_DIV_EXPR
...
...
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