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
9e69be8c
Commit
9e69be8c
authored
Dec 25, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(set_nonzero_bits_and_sign_copies, nonzero_bits): Fix errors in
SHORT_IMMEDIATES_SIGN_EXTEND code. From-SVN: r6315
parent
14d4a67a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
gcc/combine.c
+5
-7
No files found.
gcc/combine.c
View file @
9e69be8c
...
@@ -728,7 +728,7 @@ set_nonzero_bits_and_sign_copies (x, set)
...
@@ -728,7 +728,7 @@ set_nonzero_bits_and_sign_copies (x, set)
&&
INTVAL
(
src
)
>
0
&&
INTVAL
(
src
)
>
0
&&
0
!=
(
INTVAL
(
src
)
&&
0
!=
(
INTVAL
(
src
)
&
((
HOST_WIDE_INT
)
1
&
((
HOST_WIDE_INT
)
1
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
)
))))
<<
(
GET_MODE_BITSIZE
(
GET_MODE
(
x
))
-
1
))))
src
=
GEN_INT
(
INTVAL
(
src
)
src
=
GEN_INT
(
INTVAL
(
src
)
|
((
HOST_WIDE_INT
)
(
-
1
)
|
((
HOST_WIDE_INT
)
(
-
1
)
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
))));
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
))));
...
@@ -6559,7 +6559,7 @@ nonzero_bits (x, mode)
...
@@ -6559,7 +6559,7 @@ nonzero_bits (x, mode)
&&
INTVAL
(
tem
)
>
0
&&
INTVAL
(
tem
)
>
0
&&
0
!=
(
INTVAL
(
tem
)
&&
0
!=
(
INTVAL
(
tem
)
&
((
HOST_WIDE_INT
)
1
&
((
HOST_WIDE_INT
)
1
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
)
))))
<<
(
GET_MODE_BITSIZE
(
GET_MODE
(
x
))
-
1
))))
tem
=
GEN_INT
(
INTVAL
(
tem
)
tem
=
GEN_INT
(
INTVAL
(
tem
)
|
((
HOST_WIDE_INT
)
(
-
1
)
|
((
HOST_WIDE_INT
)
(
-
1
)
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
))));
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
))));
...
@@ -6574,11 +6574,9 @@ nonzero_bits (x, mode)
...
@@ -6574,11 +6574,9 @@ nonzero_bits (x, mode)
case
CONST_INT
:
case
CONST_INT
:
#ifdef SHORT_IMMEDIATES_SIGN_EXTEND
#ifdef SHORT_IMMEDIATES_SIGN_EXTEND
/* If X is negative in MODE, sign-extend the value. */
/* If X is negative in MODE, sign-extend the value. */
if
(
INTVAL
(
x
)
>
0
if
(
INTVAL
(
x
)
>
0
&&
mode_width
<
BITS_PER_WORD
&&
0
!=
(
INTVAL
(
x
)
&&
0
!=
(
INTVAL
(
x
)
&
((
HOST_WIDE_INT
)
1
<<
(
mode_width
-
1
))))
&
((
HOST_WIDE_INT
)
1
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
)))))
return
(
INTVAL
(
x
)
|
((
HOST_WIDE_INT
)
(
-
1
)
<<
mode_width
));
return
(
INTVAL
(
x
)
|
((
HOST_WIDE_INT
)
(
-
1
)
<<
GET_MODE_BITSIZE
(
GET_MODE
(
x
))));
#endif
#endif
return
INTVAL
(
x
);
return
INTVAL
(
x
);
...
...
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