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
b2e7e6fb
Commit
b2e7e6fb
authored
Dec 17, 1998
by
Nick Clifton
Committed by
Nick Clifton
Dec 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not generate CLOBBERs for non-pseudo regs.
From-SVN: r24364
parent
3cdbd1f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
gcc/ChangeLog
+5
-0
gcc/expr.c
+22
-4
No files found.
gcc/ChangeLog
View file @
b2e7e6fb
Thu
Dec
17
13
:
57
:
23
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
expr
.
c
(
emit_move_insn_1
)
:
Only
emit
a
clobber
if
the
target
is
a
pseudo
register
.
Thu
Dec
17
13
:
50
:
29
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
Thu
Dec
17
13
:
50
:
29
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
gcse
.
c
:
Include
expr
.
h
in
order
to
get
the
prototype
for
*
gcse
.
c
:
Include
expr
.
h
in
order
to
get
the
prototype
for
...
...
gcc/expr.c
View file @
b2e7e6fb
...
@@ -2593,9 +2593,18 @@ emit_move_insn_1 (x, y)
...
@@ -2593,9 +2593,18 @@ emit_move_insn_1 (x, y)
}
}
else
else
{
{
/* Show the output dies here. */
/* Show the output dies here.
This is only necessary for pseudos.
*/
if
(
x
!=
y
)
if
(
x
!=
y
)
emit_insn
(
gen_rtx_CLOBBER
(
VOIDmode
,
x
));
{
rtx
reg
=
x
;
while
(
GET_CODE
(
reg
)
==
SUBREG
)
reg
=
SUBREG_REG
(
reg
);
if
(
GET_CODE
(
reg
)
==
REG
&&
REGNO
(
reg
)
>=
FIRST_PSEUDO_REGISTER
)
emit_insn
(
gen_rtx_CLOBBER
(
VOIDmode
,
x
));
}
emit_insn
(
GEN_FCN
(
mov_optab
->
handlers
[(
int
)
submode
].
insn_code
)
emit_insn
(
GEN_FCN
(
mov_optab
->
handlers
[(
int
)
submode
].
insn_code
)
(
gen_realpart
(
submode
,
x
),
gen_realpart
(
submode
,
y
)));
(
gen_realpart
(
submode
,
x
),
gen_realpart
(
submode
,
y
)));
...
@@ -2624,9 +2633,18 @@ emit_move_insn_1 (x, y)
...
@@ -2624,9 +2633,18 @@ emit_move_insn_1 (x, y)
}
}
#endif
#endif
/* Show the output dies here. */
/* Show the output dies here.
This is only necessary for pseudos.
*/
if
(
x
!=
y
)
if
(
x
!=
y
)
emit_insn
(
gen_rtx_CLOBBER
(
VOIDmode
,
x
));
{
rtx
reg
=
x
;
while
(
GET_CODE
(
reg
)
==
SUBREG
)
reg
=
SUBREG_REG
(
reg
);
if
(
GET_CODE
(
reg
)
==
REG
&&
REGNO
(
reg
)
>=
FIRST_PSEUDO_REGISTER
)
emit_insn
(
gen_rtx_CLOBBER
(
VOIDmode
,
x
));
}
for
(
i
=
0
;
for
(
i
=
0
;
i
<
(
GET_MODE_SIZE
(
mode
)
+
(
UNITS_PER_WORD
-
1
))
/
UNITS_PER_WORD
;
i
<
(
GET_MODE_SIZE
(
mode
)
+
(
UNITS_PER_WORD
-
1
))
/
UNITS_PER_WORD
;
...
...
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