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
988ef418
Commit
988ef418
authored
Jun 20, 2002
by
Richard Sandiford
Committed by
Richard Sandiford
Jun 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (make_extraction): Reapply to the argument of an ASHIFT.
From-SVN: r54846
parent
0ab2e54b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
gcc/ChangeLog
+4
-0
gcc/combine.c
+15
-0
No files found.
gcc/ChangeLog
View file @
988ef418
2002-06-20 Richard Sandiford <rsandifo@redhat.com>
* combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
...
...
gcc/combine.c
View file @
988ef418
...
...
@@ -5968,6 +5968,21 @@ make_extraction (mode, inner, pos, pos_rtx, len,
is_mode
=
GET_MODE
(
SUBREG_REG
(
inner
));
inner
=
SUBREG_REG
(
inner
);
}
else
if
(
GET_CODE
(
inner
)
==
ASHIFT
&&
GET_CODE
(
XEXP
(
inner
,
1
))
==
CONST_INT
&&
pos_rtx
==
0
&&
pos
==
0
&&
len
>
INTVAL
(
XEXP
(
inner
,
1
)))
{
/* We're extracting the least significant bits of an rtx
(ashift X (const_int C)), where LEN > C. Extract the
least significant (LEN - C) bits of X, giving an rtx
whose mode is MODE, then shift it left C times. */
new
=
make_extraction
(
mode
,
XEXP
(
inner
,
0
),
0
,
0
,
len
-
INTVAL
(
XEXP
(
inner
,
1
)),
unsignedp
,
in_dest
,
in_compare
);
if
(
new
!=
0
)
return
gen_rtx_ASHIFT
(
mode
,
new
,
XEXP
(
inner
,
1
));
}
inner_mode
=
GET_MODE
(
inner
);
...
...
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