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
a4bde0b1
Commit
a4bde0b1
authored
Apr 17, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r764
parent
d0b97e0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gcc/combine.c
+6
-2
No files found.
gcc/combine.c
View file @
a4bde0b1
...
...
@@ -2583,10 +2583,13 @@ subst (x, from, to, in_dest, unique_copy)
}
/* For a constant, try to pick up the part we want. Handle a full
word and low-order part. */
word and low-order part. Only do this if we are narrowing
the constant; if it is being widened, we have no idea what
the extra bits will have been set to. */
if
(
CONSTANT_P
(
SUBREG_REG
(
x
))
&&
op0_mode
!=
VOIDmode
&&
GET_MODE_SIZE
(
mode
)
==
UNITS_PER_WORD
&&
GET_MODE_SIZE
(
op0_mode
)
<
UNITS_PER_WORD
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
)
{
temp
=
operand_subword
(
SUBREG_REG
(
x
),
SUBREG_WORD
(
x
),
...
...
@@ -2595,7 +2598,8 @@ subst (x, from, to, in_dest, unique_copy)
return
temp
;
}
if
(
CONSTANT_P
(
SUBREG_REG
(
x
))
&&
subreg_lowpart_p
(
x
))
if
(
CONSTANT_P
(
SUBREG_REG
(
x
))
&&
subreg_lowpart_p
(
x
)
&&
GET_MODE_SIZE
(
mode
)
<
GET_MODE_SIZE
(
op0_mode
))
return
gen_lowpart_for_combine
(
mode
,
SUBREG_REG
(
x
));
/* If we are narrowing the object, we need to see if we can simplify
...
...
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