Commit 8b27c905 by Richard Sandiford Committed by Richard Sandiford

Relax store_bit_field call in store_expr

store_bit_field already takes a poly_uint64 size, so we can relax the
INTVAL to rtx_to_poly_int64.  This is tested by the SVE ACLE patches.

2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* expr.c (store_expr): Use rtx_to_poly_int64 rather than
	INTVAL when calling store_bit_field.

From-SVN: r276888
parent 3635c2bf
2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
* expr.c (store_expr): Use rtx_to_poly_int64 rather than
INTVAL when calling store_bit_field.
2019-10-11 Wilco Dijkstra <wdijkstr@arm.com> 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
* config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
......
...@@ -5790,7 +5790,8 @@ store_expr (tree exp, rtx target, int call_param_p, ...@@ -5790,7 +5790,8 @@ store_expr (tree exp, rtx target, int call_param_p,
copy_blkmode_from_reg (target, temp, TREE_TYPE (exp)); copy_blkmode_from_reg (target, temp, TREE_TYPE (exp));
else else
store_bit_field (target, store_bit_field (target,
INTVAL (expr_size (exp)) * BITS_PER_UNIT, rtx_to_poly_int64 (expr_size (exp))
* BITS_PER_UNIT,
0, 0, 0, GET_MODE (temp), temp, reverse); 0, 0, 0, GET_MODE (temp), temp, reverse);
} }
else else
......
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