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
8c1d52a3
Commit
8c1d52a3
authored
May 25, 2002
by
Kazu Hirata
Committed by
Kazu Hirata
May 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (simplify_set): Remove an unnecessary subreg.
From-SVN: r53873
parent
b47cae3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
gcc/ChangeLog
+4
-0
gcc/combine.c
+24
-0
No files found.
gcc/ChangeLog
View file @
8c1d52a3
2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
* combine.c (simplify_set): Remove an unnecessary subreg.
2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
* config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
...
...
gcc/combine.c
View file @
8c1d52a3
...
...
@@ -5160,6 +5160,30 @@ simplify_set (x)
src
=
SET_SRC
(
x
),
dest
=
SET_DEST
(
x
);
}
#ifdef HAVE_cc0
/* If we have (set (cc0) (subreg ...)), we try to remove the subreg
in SRC. */
if
(
dest
==
cc0_rtx
&&
GET_CODE
(
src
)
==
SUBREG
&&
subreg_lowpart_p
(
src
)
&&
(
GET_MODE_BITSIZE
(
GET_MODE
(
src
))
<
GET_MODE_BITSIZE
(
GET_MODE
(
SUBREG_REG
(
src
)))))
{
rtx
inner
=
SUBREG_REG
(
src
);
enum
machine_mode
inner_mode
=
GET_MODE
(
inner
);
/* Here we make sure that we don't have a sign bit on. */
if
(
GET_MODE_BITSIZE
(
inner_mode
)
<=
HOST_BITS_PER_WIDE_INT
&&
(
nonzero_bits
(
inner
,
inner_mode
)
<
((
unsigned
HOST_WIDE_INT
)
1
<<
(
GET_MODE_BITSIZE
(
inner_mode
)
-
1
))))
{
SUBST
(
SET_SRC
(
x
),
inner
);
src
=
SET_SRC
(
x
);
}
}
#endif
#ifdef LOAD_EXTEND_OP
/* If we have (set FOO (subreg:M (mem:N BAR) 0)) with M wider than N, this
would require a paradoxical subreg. Replace the subreg with a
...
...
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