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
0c5e217d
Commit
0c5e217d
authored
Mar 31, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rtx_to_tree_code): New function.
From-SVN: r3944
parent
d3159aee
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 @
0c5e217d
...
...
@@ -1010,3 +1010,41 @@ hard_libcall_value (mode)
{
return
LIBCALL_VALUE
(
mode
);
}
/* Look up the tree code for a given rtx code
to provide the arithmetic operation for REAL_ARITHMETIC.
The function returns an int because the caller may not know
what `enum tree_code' means. */
int
rtx_to_tree_code
(
code
)
enum
rtx_code
code
;
{
enum
tree_code
tcode
;
switch
(
code
)
{
case
PLUS
:
tcode
=
PLUS_EXPR
;
break
;
case
MINUS
:
tcode
=
MINUS_EXPR
;
break
;
case
MULT
:
tcode
=
MULT_EXPR
;
break
;
case
DIV
:
tcode
=
RDIV_EXPR
;
break
;
case
SMIN
:
tcode
=
MIN_EXPR
;
break
;
case
SMAX
:
tcode
=
MAX_EXPR
;
break
;
default
:
tcode
=
LAST_AND_UNUSED_TREE_CODE
;
break
;
}
return
((
int
)
tcode
);
}
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