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
937e37cc
Commit
937e37cc
authored
Oct 10, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Oct 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regmove.c (optimize_reg_copy_3): Honor TRULY_NOOP_TRUNCATION.
From-SVN: r22977
parent
3aeab437
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
gcc/ChangeLog
+4
-0
gcc/regmove.c
+8
-0
No files found.
gcc/ChangeLog
View file @
937e37cc
Sat
Oct
10
17
:
01
:
42
1998
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
regmove
.
c
(
optimize_reg_copy_3
)
:
Honor
TRULY_NOOP_TRUNCATION
.
Fri
Oct
9
22
:
08
:
05
1998
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
Fri
Oct
9
22
:
08
:
05
1998
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
fp
-
bit
.
c
(
SFtype
)
:
Don
'
t
implicitly
use
int
in
declaration
.
*
fp
-
bit
.
c
(
SFtype
)
:
Don
'
t
implicitly
use
int
in
declaration
.
...
...
gcc/regmove.c
View file @
937e37cc
...
@@ -552,6 +552,14 @@ optimize_reg_copy_3 (insn, dest, src)
...
@@ -552,6 +552,14 @@ optimize_reg_copy_3 (insn, dest, src)
||
GET_CODE
(
SET_SRC
(
set
))
!=
MEM
||
GET_CODE
(
SET_SRC
(
set
))
!=
MEM
||
SET_DEST
(
set
)
!=
src_reg
)
||
SET_DEST
(
set
)
!=
src_reg
)
return
;
return
;
/* Do not use a SUBREG to truncate from one mode to another if truncation
is not a nop. */
if
(
GET_MODE_BITSIZE
(
GET_MODE
(
src_reg
))
<=
GET_MODE_BITSIZE
(
GET_MODE
(
src
))
&&
!
TRULY_NOOP_TRUNCATION
(
GET_MODE_BITSIZE
(
GET_MODE
(
src
)),
GET_MODE_BITSIZE
(
GET_MODE
(
src_reg
))))
return
;
old_mode
=
GET_MODE
(
src_reg
);
old_mode
=
GET_MODE
(
src_reg
);
PUT_MODE
(
src_reg
,
GET_MODE
(
src
));
PUT_MODE
(
src_reg
,
GET_MODE
(
src
));
XEXP
(
src
,
0
)
=
SET_SRC
(
set
);
XEXP
(
src
,
0
)
=
SET_SRC
(
set
);
...
...
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