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
f9011d04
Commit
f9011d04
authored
Nov 29, 1999
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install proper change
From-SVN: r30715
parent
59adecfa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/fold-const.c
+3
-2
No files found.
gcc/fold-const.c
View file @
f9011d04
...
...
@@ -4367,14 +4367,15 @@ extract_muldiv (t, c, code, wide_type)
if
(
t1
!=
0
&&
t2
!=
0
)
return
fold
(
build
(
tcode
,
ctype
,
convert
(
ctype
,
t1
),
convert
(
ctype
,
t2
)));
else
if
(
TREE_CODE
(
op1
)
!=
INTEGER_CST
)
break
;
/* If this was a subtraction, negate OP1 and set it to be an addition.
This simplifies the logic below. */
if
(
tcode
==
MINUS_EXPR
)
tcode
=
PLUS_EXPR
,
op1
=
negate_expr
(
op1
);
if
(
TREE_CODE
(
op1
)
!=
INTEGER_CST
)
break
;
/* If either OP1 or C are negative, this optimization is not safe for
some of the division and remainder types while for others we need
to change the code. */
...
...
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