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
a490d1be
Commit
a490d1be
authored
Sep 18, 2003
by
Roger Sayle
Committed by
Roger Sayle
Sep 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jcf-write.c (generate_bytecode_insns): Add support for fconst_2.
From-SVN: r71524
parent
b2bc3339
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/java/ChangeLog
+4
-0
gcc/java/jcf-write.c
+3
-2
No files found.
gcc/java/ChangeLog
View file @
a490d1be
2003-09-18 Roger Sayle <roger@eyesopen.com>
* jcf-write.c (generate_bytecode_insns): Add support for fconst_2.
2003-09-16 Andrew Haley <aph@redhat.com>
* jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR.
...
...
gcc/java/jcf-write.c
View file @
a490d1be
...
...
@@ -1462,8 +1462,9 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state)
OP1
(
prec
==
1
?
OPCODE_fconst_0
:
OPCODE_dconst_0
);
else
if
(
real_onep
(
exp
))
OP1
(
prec
==
1
?
OPCODE_fconst_1
:
OPCODE_dconst_1
);
/* FIXME Should also use fconst_2 for 2.0f.
Also, should use iconst_2/ldc followed by i2f/i2d
else
if
(
prec
==
1
&&
real_twop
(
exp
))
OP1
(
OPCODE_fconst_2
);
/* ??? We could also use iconst_3/ldc followed by i2f/i2d
for other float/double when the value is a small integer. */
else
{
...
...
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