Commit c0328be3 by Jason Merrill

* convert.c (convert_to_integer_1): Re-indent.

From-SVN: r233217
parent 415594bb
...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment