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
a7c5971a
Commit
a7c5971a
authored
32 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(compare_from_rtx): Allow simplify_relational_operation to fail.
From-SVN: r3204
parent
1b6f3c1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/expr.c
+6
-3
No files found.
gcc/expr.c
View file @
a7c5971a
...
...
@@ -7109,11 +7109,13 @@ compare_from_rtx (op0, op1, code, unsignedp, mode, size, align)
rtx
size
;
int
align
;
{
rtx
tem
;
/* If one operand is constant, make it the second one. */
if
(
GET_CODE
(
op0
)
==
CONST_INT
||
GET_CODE
(
op0
)
==
CONST_DOUBLE
)
{
rtx
tem
=
op0
;
tem
=
op0
;
op0
=
op1
;
op1
=
tem
;
code
=
swap_condition
(
code
);
...
...
@@ -7127,8 +7129,9 @@ compare_from_rtx (op0, op1, code, unsignedp, mode, size, align)
do_pending_stack_adjust
();
if
(
GET_CODE
(
op0
)
==
CONST_INT
&&
GET_CODE
(
op1
)
==
CONST_INT
)
return
simplify_relational_operation
(
code
,
mode
,
op0
,
op1
);
if
(
GET_CODE
(
op0
)
==
CONST_INT
&&
GET_CODE
(
op1
)
==
CONST_INT
&&
(
tem
=
simplify_relational_operation
(
code
,
mode
,
op0
,
op1
))
!=
0
)
return
tem
;
#if 0
/* There's no need to do this now that combine.c can eliminate lots of
...
...
This diff is collapsed.
Click to expand it.
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