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
75473182
Commit
75473182
authored
May 16, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r997
parent
ea9c2c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
gcc/combine.c
+9
-4
No files found.
gcc/combine.c
View file @
75473182
...
@@ -3687,11 +3687,16 @@ expand_compound_operation (x)
...
@@ -3687,11 +3687,16 @@ expand_compound_operation (x)
case
ZERO_EXTEND
:
case
ZERO_EXTEND
:
unsignedp
=
1
;
unsignedp
=
1
;
case
SIGN_EXTEND
:
case
SIGN_EXTEND
:
/* If we somehow managed to end up with (sign/zero_extend (const_int x)),
/* We can't necessarily use a const_int for a multiword mode;
just return the CONST_INT. We can't know how much masking to do
it depends on implicitly extending the value.
in that case. */
Since we don't know the right way to extend it,
we can't tell whether the implicit way is right.
Even for a mode that is no wider than a const_int,
we can't win, because we need to sign extend one of its bits through
the rest of it, and we don't know which bit. */
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
CONST_INT
)
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
CONST_INT
)
return
XEXP
(
x
,
0
)
;
return
x
;
if
(
!
FAKE_EXTEND_SAFE_P
(
GET_MODE
(
XEXP
(
x
,
0
)),
XEXP
(
x
,
0
)))
if
(
!
FAKE_EXTEND_SAFE_P
(
GET_MODE
(
XEXP
(
x
,
0
)),
XEXP
(
x
,
0
)))
return
x
;
return
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