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
c0328be3
Commit
c0328be3
authored
Feb 08, 2016
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* convert.c (convert_to_integer_1): Re-indent.
From-SVN: r233217
parent
415594bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
gcc/convert.c
+8
-7
No files found.
gcc/convert.c
View file @
c0328be3
...
@@ -719,8 +719,8 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
...
@@ -719,8 +719,8 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
tree
arg0
=
get_unwidened
(
TREE_OPERAND
(
expr
,
0
),
type
);
tree
arg0
=
get_unwidened
(
TREE_OPERAND
(
expr
,
0
),
type
);
tree
arg1
=
get_unwidened
(
TREE_OPERAND
(
expr
,
1
),
type
);
tree
arg1
=
get_unwidened
(
TREE_OPERAND
(
expr
,
1
),
type
);
/* Don't distribute unless the output precision is at least as big
/* Don't distribute unless the output precision is at least as
as the actual inputs and it has the same signedness. */
big
as the actual inputs and it has the same signedness. */
if
(
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg0
))
if
(
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg0
))
&&
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg1
))
&&
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg1
))
/* If signedness of arg0 and arg1 don't match,
/* If signedness of arg0 and arg1 don't match,
...
@@ -746,8 +746,8 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
...
@@ -746,8 +746,8 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
tree
arg0
=
get_unwidened
(
TREE_OPERAND
(
expr
,
0
),
type
);
tree
arg0
=
get_unwidened
(
TREE_OPERAND
(
expr
,
0
),
type
);
tree
arg1
=
get_unwidened
(
TREE_OPERAND
(
expr
,
1
),
type
);
tree
arg1
=
get_unwidened
(
TREE_OPERAND
(
expr
,
1
),
type
);
/* Don't distribute unless the output precision is at least as big
/* Don't distribute unless the output precision is at least as
as the actual inputs. Otherwise, the comparison of the
big
as the actual inputs. Otherwise, the comparison of the
truncated values will be wrong. */
truncated values will be wrong. */
if
(
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg0
))
if
(
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg0
))
&&
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg1
))
&&
outprec
>=
TYPE_PRECISION
(
TREE_TYPE
(
arg1
))
...
@@ -878,10 +878,11 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
...
@@ -878,10 +878,11 @@ convert_to_integer_1 (tree type, tree expr, bool dofold)
}
}
CASE_CONVERT:
CASE_CONVERT:
/* Don't introduce a
/* Don't introduce a "can't convert between vector values of
"can't convert between vector values of
different size" error. */
different size" error. */
if
(
TREE_CODE
(
TREE_TYPE
(
TREE_OPERAND
(
expr
,
0
)))
==
VECTOR_TYPE
if
(
TREE_CODE
(
TREE_TYPE
(
TREE_OPERAND
(
expr
,
0
)))
==
VECTOR_TYPE
&&
(
GET_MODE_SIZE
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
expr
,
0
))))
&&
(
GET_MODE_SIZE
(
TYPE_MODE
(
TREE_TYPE
(
TREE_OPERAND
(
expr
,
0
))))
!=
GET_MODE_SIZE
(
TYPE_MODE
(
type
))))
!=
GET_MODE_SIZE
(
TYPE_MODE
(
type
))))
break
;
break
;
/* If truncating after truncating, might as well do all at once.
/* If truncating after truncating, might as well do all at once.
...
...
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