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
8041889f
Commit
8041889f
authored
Feb 24, 2002
by
Richard Kenner
Committed by
Richard Kenner
Feb 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
From-SVN: r50011
parent
506d4ef6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
gcc/ChangeLog
+4
-0
gcc/optabs.c
+7
-4
No files found.
gcc/ChangeLog
View file @
8041889f
Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplex.c (cpp_interpret_charconst): Get signedness or
* cpplex.c (cpp_interpret_charconst): Get signedness or
...
...
gcc/optabs.c
View file @
8041889f
...
@@ -186,11 +186,14 @@ widen_operand (op, mode, oldmode, unsignedp, no_extend)
...
@@ -186,11 +186,14 @@ widen_operand (op, mode, oldmode, unsignedp, no_extend)
{
{
rtx
result
;
rtx
result
;
/* If we must extend do so. If OP is either a constant or a SUBREG
/* If we don't have to extend and this is a constant, return it. */
for a promoted object, also extend since it will be more efficient to
if
(
no_extend
&&
GET_MODE
(
op
)
==
VOIDmode
)
do so. */
return
op
;
/* If we must extend do so. If OP is a SUBREG for a promoted object, also
extend since it will be more efficient to do so unless the signedness of
a promoted object differs from our extension. */
if
(
!
no_extend
if
(
!
no_extend
||
GET_MODE
(
op
)
==
VOIDmode
||
(
GET_CODE
(
op
)
==
SUBREG
&&
SUBREG_PROMOTED_VAR_P
(
op
)
||
(
GET_CODE
(
op
)
==
SUBREG
&&
SUBREG_PROMOTED_VAR_P
(
op
)
&&
SUBREG_PROMOTED_UNSIGNED_P
(
op
)
==
unsignedp
))
&&
SUBREG_PROMOTED_UNSIGNED_P
(
op
)
==
unsignedp
))
return
convert_modes
(
mode
,
oldmode
,
op
,
unsignedp
);
return
convert_modes
(
mode
,
oldmode
,
op
,
unsignedp
);
...
...
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