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
0766f239
Commit
0766f239
authored
Oct 30, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_jump): Use do_jump_by_parts_equality for complex compares.
From-SVN: r5938
parent
22128daf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
gcc/expr.c
+12
-8
No files found.
gcc/expr.c
View file @
0766f239
...
@@ -8294,10 +8294,12 @@ do_jump (exp, if_false_label, if_true_label)
...
@@ -8294,10 +8294,12 @@ do_jump (exp, if_false_label, if_true_label)
case
EQ_EXPR
:
case
EQ_EXPR
:
if
(
integer_zerop
(
TREE_OPERAND
(
exp
,
1
)))
if
(
integer_zerop
(
TREE_OPERAND
(
exp
,
1
)))
do_jump
(
TREE_OPERAND
(
exp
,
0
),
if_true_label
,
if_false_label
);
do_jump
(
TREE_OPERAND
(
exp
,
0
),
if_true_label
,
if_false_label
);
else
if
((
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
else
if
(((
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_INT
)
==
MODE_INT
)
&&
&&
!
can_compare_p
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
)))))
!
can_compare_p
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
)))))
||
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_COMPLEX_FLOAT
||
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_COMPLEX_INT
)
do_jump_by_parts_equality
(
exp
,
if_false_label
,
if_true_label
);
do_jump_by_parts_equality
(
exp
,
if_false_label
,
if_true_label
);
else
else
comparison
=
compare
(
exp
,
EQ
,
EQ
);
comparison
=
compare
(
exp
,
EQ
,
EQ
);
...
@@ -8306,10 +8308,12 @@ do_jump (exp, if_false_label, if_true_label)
...
@@ -8306,10 +8308,12 @@ do_jump (exp, if_false_label, if_true_label)
case
NE_EXPR
:
case
NE_EXPR
:
if
(
integer_zerop
(
TREE_OPERAND
(
exp
,
1
)))
if
(
integer_zerop
(
TREE_OPERAND
(
exp
,
1
)))
do_jump
(
TREE_OPERAND
(
exp
,
0
),
if_false_label
,
if_true_label
);
do_jump
(
TREE_OPERAND
(
exp
,
0
),
if_false_label
,
if_true_label
);
else
if
((
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
else
if
(((
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_INT
)
==
MODE_INT
)
&&
&&
!
can_compare_p
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
)))))
!
can_compare_p
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
)))))
||
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_COMPLEX_FLOAT
||
GET_MODE_CLASS
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
))))
==
MODE_COMPLEX_INT
)
do_jump_by_parts_equality
(
exp
,
if_true_label
,
if_false_label
);
do_jump_by_parts_equality
(
exp
,
if_true_label
,
if_false_label
);
else
else
comparison
=
compare
(
exp
,
NE
,
NE
);
comparison
=
compare
(
exp
,
NE
,
NE
);
...
...
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