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
25216284
Commit
25216284
authored
Jun 07, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold): When folding `<' type nodes, make true_value and false_value
have correct types. From-SVN: r9899
parent
d36c3fe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gcc/fold-const.c
+7
-5
No files found.
gcc/fold-const.c
View file @
25216284
...
...
@@ -2615,7 +2615,7 @@ range_test (jcode, type, lo_code, hi_code, var, lo_cst, hi_cst)
}
/* Subroutine for fold_truthop: C is an INTEGER_CST interpreted as a P
bit value. Arrange things so the extra bits will be set to zero if and
]
bit value. Arrange things so the extra bits will be set to zero if and
only if C is signed-extended to its full width. */
static
tree
...
...
@@ -3270,9 +3270,10 @@ fold (expr)
}
else
{
tree
testtype
=
TREE_TYPE
(
arg1
);
test
=
arg1
;
true_value
=
integer_one_node
;
false_value
=
integer_zero_node
;
true_value
=
convert
(
testtype
,
integer_one_node
)
;
false_value
=
convert
(
testtype
,
integer_zero_node
)
;
}
/* If ARG0 is complex we want to make sure we only evaluate
...
...
@@ -3325,9 +3326,10 @@ fold (expr)
}
else
{
tree
testtype
=
TREE_TYPE
(
arg0
);
test
=
arg0
;
true_value
=
integer_one_node
;
false_value
=
integer_zero_node
;
true_value
=
convert
(
testtype
,
integer_one_node
)
;
false_value
=
convert
(
testtype
,
integer_zero_node
)
;
}
if
(
TREE_CODE
(
arg1
)
!=
SAVE_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