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
de7f492b
Commit
de7f492b
authored
Feb 14, 2006
by
Adam Nemet
Committed by
Adam Nemet
Feb 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
From-SVN: r110990
parent
1cf0118d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
gcc/ChangeLog
+4
-0
gcc/simplify-rtx.c
+8
-0
No files found.
gcc/ChangeLog
View file @
de7f492b
2006-02-14 Adam Nemet <anemet@caviumnetworks.com>
* simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
2006-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2006-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR bootstrap/26053
PR bootstrap/26053
...
...
gcc/simplify-rtx.c
View file @
de7f492b
...
@@ -4426,6 +4426,14 @@ simplify_subreg (enum machine_mode outermode, rtx op,
...
@@ -4426,6 +4426,14 @@ simplify_subreg (enum machine_mode outermode, rtx op,
return
NULL_RTX
;
return
NULL_RTX
;
}
}
/* Merge implicit and explicit truncations. */
if
(
GET_CODE
(
op
)
==
TRUNCATE
&&
GET_MODE_SIZE
(
outermode
)
<
GET_MODE_SIZE
(
innermode
)
&&
subreg_lowpart_offset
(
outermode
,
innermode
)
==
byte
)
return
simplify_gen_unary
(
TRUNCATE
,
outermode
,
XEXP
(
op
,
0
),
GET_MODE
(
XEXP
(
op
,
0
)));
/* SUBREG of a hard register => just change the register number
/* SUBREG of a hard register => just change the register number
and/or mode. If the hard register is not valid in that mode,
and/or mode. If the hard register is not valid in that mode,
suppress this simplification. If the hard register is the stack,
suppress this simplification. If the hard register is the stack,
...
...
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