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
58633be8
Commit
58633be8
authored
Feb 02, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(const_binop, COMPLEX_TYPE, case RDIV_EXPR): If complex integer, use
TRUNC_DIV_EXPR for inner division. From-SVN: r6468
parent
75ddf8b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
gcc/fold-const.c
+20
-12
No files found.
gcc/fold-const.c
View file @
58633be8
...
...
@@ -1433,18 +1433,26 @@ const_binop (code, arg1, arg2, notrunc)
const_binop
(
MULT_EXPR
,
r2
,
r2
,
notrunc
),
const_binop
(
MULT_EXPR
,
i2
,
i2
,
notrunc
),
notrunc
);
t
=
build_complex
(
const_binop
(
RDIV_EXPR
,
const_binop
(
PLUS_EXPR
,
const_binop
(
MULT_EXPR
,
r1
,
r2
,
notrunc
),
const_binop
(
MULT_EXPR
,
i1
,
i2
,
notrunc
),
notrunc
),
magsquared
,
notrunc
),
const_binop
(
RDIV_EXPR
,
const_binop
(
MINUS_EXPR
,
const_binop
(
MULT_EXPR
,
i1
,
r2
,
notrunc
),
const_binop
(
MULT_EXPR
,
r1
,
i2
,
notrunc
),
notrunc
),
magsquared
,
notrunc
));
t
=
build_complex
(
const_binop
(
INTEGRAL_TYPE_P
(
TREE_TYPE
(
r1
))
?
TRUNC_DIV_EXPR
:
RDIV_EXPR
,
const_binop
(
PLUS_EXPR
,
const_binop
(
MULT_EXPR
,
r1
,
r2
,
notrunc
),
const_binop
(
MULT_EXPR
,
i1
,
i2
,
notrunc
),
notrunc
),
magsquared
,
notrunc
),
const_binop
(
INTEGRAL_TYPE_P
(
TREE_TYPE
(
r1
))
?
TRUNC_DIV_EXPR
:
RDIV_EXPR
,
const_binop
(
MINUS_EXPR
,
const_binop
(
MULT_EXPR
,
i1
,
r2
,
notrunc
),
const_binop
(
MULT_EXPR
,
r1
,
i2
,
notrunc
),
notrunc
),
magsquared
,
notrunc
));
}
break
;
...
...
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