Commit a577c405 by Richard Guenther Committed by Richard Biener

expr.c (expand_expr_real_2): Reduce all integral types to bitfield precision.

2011-06-15  Richard Guenther  <rguenther@suse.de>

	* expr.c (expand_expr_real_2): Reduce all integral types to
	bitfield precision.
	(expand_expr_real_1): Likewise.

From-SVN: r175078
parent 93536c97
2011-06-15 Richard Guenther <rguenther@suse.de>
* expr.c (expand_expr_real_2): Reduce all integral types to
bitfield precision.
(expand_expr_real_1): Likewise.
2011-06-15 Martin Jambor <mjambor@suse.cz> 2011-06-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/48613 PR tree-optimization/48613
......
...@@ -7265,7 +7265,7 @@ expand_expr_real_2 (sepops ops, rtx target, enum machine_mode tmode, ...@@ -7265,7 +7265,7 @@ expand_expr_real_2 (sepops ops, rtx target, enum machine_mode tmode,
/* An operation in what may be a bit-field type needs the /* An operation in what may be a bit-field type needs the
result to be reduced to the precision of the bit-field type, result to be reduced to the precision of the bit-field type,
which is narrower than that of the type's mode. */ which is narrower than that of the type's mode. */
reduce_bit_field = (TREE_CODE (type) == INTEGER_TYPE reduce_bit_field = (INTEGRAL_TYPE_P (type)
&& GET_MODE_PRECISION (mode) > TYPE_PRECISION (type)); && GET_MODE_PRECISION (mode) > TYPE_PRECISION (type));
if (reduce_bit_field && modifier == EXPAND_STACK_PARM) if (reduce_bit_field && modifier == EXPAND_STACK_PARM)
...@@ -8334,7 +8334,7 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, ...@@ -8334,7 +8334,7 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
result to be reduced to the precision of the bit-field type, result to be reduced to the precision of the bit-field type,
which is narrower than that of the type's mode. */ which is narrower than that of the type's mode. */
reduce_bit_field = (!ignore reduce_bit_field = (!ignore
&& TREE_CODE (type) == INTEGER_TYPE && INTEGRAL_TYPE_P (type)
&& GET_MODE_PRECISION (mode) > TYPE_PRECISION (type)); && GET_MODE_PRECISION (mode) > TYPE_PRECISION (type));
/* If we are going to ignore this result, we need only do something /* If we are going to ignore this result, we need only do something
......
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