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
7f423031
Commit
7f423031
authored
Oct 24, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_range, comparison cases): When making range for unsigned to
merge in, use full range. From-SVN: r13027
parent
70e7fabe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
gcc/fold-const.c
+11
-6
No files found.
gcc/fold-const.c
View file @
7f423031
...
...
@@ -2757,15 +2757,20 @@ make_range (exp, pin_p, plow, phigh)
exp
=
arg0
;
/* If this is an unsigned comparison, we also know that EXP
is greater than or equal to zero. We base the range tests
we make on that fact, so we record it here so we can parse
existing range tests. */
if
(
TREE_UNSIGNED
(
type
))
/* If this is an unsigned comparison, we also know that EXP
is
greater than or equal to zero and less than the maximum value of
the unsigned type. We base the range tests we make on that fact,
so we record it here so we can parse
existing range tests. */
if
(
TREE_UNSIGNED
(
type
)
&&
(
low
==
0
||
high
==
0
)
)
{
if
(
!
merge_ranges
(
&
n_in_p
,
&
n_low
,
&
n_high
,
in_p
,
low
,
high
,
1
,
convert
(
type
,
integer_zero_node
),
NULL_TREE
))
const_binop
(
MINUS_EXPR
,
convert
(
type
,
integer_zero_node
),
convert
(
type
,
integer_one_node
),
0
)))
break
;
in_p
=
n_in_p
,
low
=
n_low
,
high
=
n_high
;
...
...
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