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
6d09ef27
Commit
6d09ef27
authored
Jan 28, 2003
by
Richard Sandiford
Committed by
Richard Sandiford
Jan 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (nonzero_bits): Fix check for negative divide operands.
From-SVN: r62029
parent
1e1bd14e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
gcc/ChangeLog
+4
-0
gcc/combine.c
+3
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20030128-1.c
+10
-0
No files found.
gcc/ChangeLog
View file @
6d09ef27
2003
-
01
-
28
Richard
Sandiford
<
rsandifo
@redhat
.
com
>
*
combine
.
c
(
nonzero_bits
)
:
Fix
check
for
negative
divide
operands
.
2003
-
01
-
28
Richard
Henderson
<
rth
@redhat
.
com
>
*
config
/
ia64
/
ia64
.
c
(
ia64_rwreloc_section_type_flags
)
:
New
.
...
...
gcc/combine.c
View file @
6d09ef27
...
...
@@ -8369,14 +8369,15 @@ nonzero_bits (x, mode)
{
unsigned
HOST_WIDE_INT
nz0
=
nonzero_bits
(
XEXP
(
x
,
0
),
mode
);
unsigned
HOST_WIDE_INT
nz1
=
nonzero_bits
(
XEXP
(
x
,
1
),
mode
);
int
sign_index
=
GET_MODE_BITSIZE
(
GET_MODE
(
x
))
-
1
;
int
width0
=
floor_log2
(
nz0
)
+
1
;
int
width1
=
floor_log2
(
nz1
)
+
1
;
int
low0
=
floor_log2
(
nz0
&
-
nz0
);
int
low1
=
floor_log2
(
nz1
&
-
nz1
);
HOST_WIDE_INT
op0_maybe_minusp
=
(
nz0
&
((
HOST_WIDE_INT
)
1
<<
(
mode_width
-
1
)
));
=
(
nz0
&
((
HOST_WIDE_INT
)
1
<<
sign_index
));
HOST_WIDE_INT
op1_maybe_minusp
=
(
nz1
&
((
HOST_WIDE_INT
)
1
<<
(
mode_width
-
1
)
));
=
(
nz1
&
((
HOST_WIDE_INT
)
1
<<
sign_index
));
unsigned
int
result_width
=
mode_width
;
int
result_low
=
0
;
...
...
gcc/testsuite/ChangeLog
View file @
6d09ef27
2003-01-28 Richard Sandiford <rsandifo@redhat.com>
* gcc.c-torture/execute/20030128-1.c: New test.
2003-01-28 Jeffrey D. Oldham <oldham@codesourcery.com>
* g++.dg/lookup/nested1.C: Test moved from ...
...
...
gcc/testsuite/gcc.c-torture/execute/20030128-1.c
0 → 100644
View file @
6d09ef27
unsigned
char
x
=
50
;
volatile
short
y
=
-
5
;
int
main
()
{
x
/=
y
;
if
(
x
!=
(
unsigned
char
)
-
10
)
abort
();
exit
(
0
);
}
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