+2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ PR middle-end/71700
+ * expr.c (store_constructor): Mask sign-extended bits when widening
+ sub-word constructor element at the start of a word.
+
2016-07-12 Martin Liska <mliska@suse.cz>
* ira-build.c (mark_loops_for_removal): Properly iterate
type = lang_hooks.types.type_for_mode
(word_mode, TYPE_UNSIGNED (type));
value = fold_convert (type, value);
+ /* Make sure the bits beyond the original bitsize are zero
+ so that we can correctly avoid extra zeroing stores in
+ later constructor elements. */
+ tree bitsize_mask
+ = wide_int_to_tree (type, wi::mask (bitsize, false,
+ BITS_PER_WORD));
+ value = fold_build2 (BIT_AND_EXPR, type, value, bitsize_mask);
}
if (BYTES_BIG_ENDIAN)
+2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ PR middle-end/71700
+ * gcc.c-torture/execute/pr71700.c: New test.
+
2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
Richard Biener <rguenther@suse.de>