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
a6acbe15
Commit
a6acbe15
authored
May 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r999
parent
b8168f0d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
gcc/cse.c
+4
-6
gcc/fold-const.c
+4
-2
No files found.
gcc/cse.c
View file @
a6acbe15
...
@@ -2948,12 +2948,12 @@ simplify_unary_operation (code, mode, op, op_mode)
...
@@ -2948,12 +2948,12 @@ simplify_unary_operation (code, mode, op, op_mode)
return
gen_rtx
(
CONST_INT
,
VOIDmode
,
val
);
return
gen_rtx
(
CONST_INT
,
VOIDmode
,
val
);
}
}
#endif
#endif
else
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_INT
/* This was formerly used only for non-IEEE float.
||
TARGET_FLOAT_FORMAT
!=
IEEE_FLOAT_FORMAT
)
eggert@twinsun.com says it is safe for IEEE also. */
else
{
{
/* There are some simplifications we can do even if the operands
/* There are some simplifications we can do even if the operands
aren't constant, but they don't apply to floating-point
aren't constant. */
unless not IEEE. */
switch
(
code
)
switch
(
code
)
{
{
case
NEG
:
case
NEG
:
...
@@ -2979,8 +2979,6 @@ simplify_unary_operation (code, mode, op, op_mode)
...
@@ -2979,8 +2979,6 @@ simplify_unary_operation (code, mode, op, op_mode)
return
0
;
return
0
;
}
}
else
return
0
;
}
}
/* Simplify a binary operation CODE with result mode MODE, operating on OP0
/* Simplify a binary operation CODE with result mode MODE, operating on OP0
...
...
gcc/fold-const.c
View file @
a6acbe15
...
@@ -3007,15 +3007,17 @@ fold (expr)
...
@@ -3007,15 +3007,17 @@ fold (expr)
/* Except with IEEE floating point, x-0 equals x. */
/* Except with IEEE floating point, x-0 equals x. */
if
(
real_zerop
(
arg1
))
if
(
real_zerop
(
arg1
))
return
non_lvalue
(
convert
(
type
,
arg0
));
return
non_lvalue
(
convert
(
type
,
arg0
));
}
/* Fold &x - &x. This can happen from &x.foo - &x.
/* Fold &x - &x. This can happen from &x.foo - &x.
Note that can't be done for certain floats even in non-IEEE formats.
This is unsafe for certain floats even in non-IEEE formats.
In IEEE, it is unsafe because it does wrong for NaNs.
Also note that operand_equal_p is always false is an operand
Also note that operand_equal_p is always false is an operand
is volatile. */
is volatile. */
if
(
operand_equal_p
(
arg0
,
arg1
,
if
(
operand_equal_p
(
arg0
,
arg1
,
TREE_CODE
(
type
)
==
REAL_TYPE
))
TREE_CODE
(
type
)
==
REAL_TYPE
))
return
convert
(
type
,
integer_zero_node
);
return
convert
(
type
,
integer_zero_node
);
}
goto
associate
;
goto
associate
;
case
MULT_EXPR
:
case
MULT_EXPR
:
...
...
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