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
7a5b18b0
Commit
7a5b18b0
authored
Mar 18, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_reload): Handle paradoxical SUBREGs.
From-SVN: r9208
parent
94bafba7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
gcc/reload1.c
+15
-1
No files found.
gcc/reload1.c
View file @
7a5b18b0
/* Reload pseudo regs into hard regs for insns that require hard regs.
Copyright (C) 1987, 88, 89, 92, 93,
1994
Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 92, 93,
94, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -6649,6 +6649,20 @@ gen_reload (out, in, opnum, type)
enum
reload_type
type
;
{
rtx
last
=
get_last_insn
();
rtx
tem
;
/* If IN is a paradoxical SUBREG, remove it and try to put the
opposite SUBREG on OUT. Likewise for a paradoxical SUBREG on OUT. */
if
(
GET_CODE
(
in
)
==
SUBREG
&&
(
GET_MODE_SIZE
(
GET_MODE
(
in
))
>
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
in
))))
&&
(
tem
=
gen_lowpart_common
(
GET_MODE
(
SUBREG_REG
(
in
)),
out
))
!=
0
)
in
=
SUBREG_REG
(
in
),
out
=
tem
;
else
if
(
GET_CODE
(
out
)
==
SUBREG
&&
(
GET_MODE_SIZE
(
GET_MODE
(
out
))
>
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
out
))))
&&
(
tem
=
gen_lowpart_common
(
GET_MODE
(
SUBREG_REG
(
out
)),
in
))
!=
0
)
out
=
SUBREG_REG
(
out
),
in
=
tem
;
/* How to do this reload can get quite tricky. Normally, we are being
asked to reload a simple operand, such as a MEM, a constant, or a pseudo
...
...
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