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
9ff65789
Commit
9ff65789
authored
Apr 18, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(promote_mode): New function.
From-SVN: r7066
parent
9d69b7c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
gcc/explow.c
+38
-0
No files found.
gcc/explow.c
View file @
9ff65789
...
...
@@ -633,6 +633,44 @@ copy_to_suggested_reg (x, target, mode)
return
temp
;
}
/* Return the mode to use to store a scalar of TYPE and MODE.
PUNSIGNEDP points to the signedness of the type and may be adjusted
to show what signedness to use on extension operations.
FOR_CALL is non-zero if this call is promoting args for a call. */
enum
machine_mode
promote_mode
(
type
,
mode
,
punsignedp
,
for_call
)
tree
type
;
enum
machine_mode
mode
;
int
*
punsignedp
;
int
for_call
;
{
enum
tree_code
code
=
TREE_CODE
(
type
);
int
unsignedp
=
*
punsignedp
;
#ifdef PROMOTE_FOR_CALL_ONLY
if
(
!
for_call
)
return
mode
;
#endif
switch
(
code
)
{
#ifdef PROMOTE_MODE
case
INTEGER_TYPE
:
case
ENUMERAL_TYPE
:
case
BOOLEAN_TYPE
:
case
CHAR_TYPE
:
case
REAL_TYPE
:
case
OFFSET_TYPE
:
PROMOTE_MODE
(
mode
,
unsignedp
,
type
);
break
;
#endif
case
POINTER_TYPE
:
break
;
}
*
punsignedp
=
unsignedp
;
return
mode
;
}
/* Adjust the stack pointer by ADJUST (an rtx for a number of bytes).
This pops when ADJUST is positive. ADJUST need not be constant. */
...
...
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