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
405862dd
Commit
405862dd
authored
28 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(merge_ranges): In (+,-) case, treat subset specially
if lower bounds are the same. From-SVN: r13127
parent
9e62c7f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gcc/fold-const.c
+8
-4
No files found.
gcc/fold-const.c
View file @
405862dd
...
...
@@ -2963,16 +2963,20 @@ merge_ranges (pin_p, plow, phigh, in0_p, low0, high0, in1_p, low1, high1)
{
/* If they don't overlap, the result is the first range. If the
second range is a subset of the first, we can't describe this as
a single range unless both ranges end at the same place
, in whic
h
case we can ignore the fact that it's a subset. Otherwise, we go
from the start of the first range to just before the start of th
e
second. */
a single range unless both ranges end at the same place
. If bot
h
ranges also start in the same place, then the result is false.
Otherwise, we go from the start of the first range to just befor
e
the start of the
second. */
if
(
no_overlap
)
in_p
=
1
,
low
=
low0
,
high
=
high0
;
else
if
(
subset
&&
integer_zerop
(
range_binop
(
EQ_EXPR
,
integer_type_node
,
high0
,
1
,
high1
,
0
)))
return
0
;
else
if
(
subset
&&
integer_onep
(
range_binop
(
EQ_EXPR
,
integer_type_node
,
low0
,
0
,
low1
,
0
)))
in_p
=
0
,
low
=
high
=
0
;
else
{
in_p
=
1
,
low
=
low0
;
...
...
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