[expr.c] PR middle-end/71700: zero-extend sub-word value when widening constructor...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 12 Jul 2016 15:00:28 +0000 (15:00 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 12 Jul 2016 15:00:28 +0000 (15:00 +0000)
commitd6f7c125d85f7b2fb5f8625d4992fbe48f4547d4
tree277c9334e6c15f3d94d37021a3b0b7007827c8eb
parent5548d9cd190fae2112e410b8ff91b09ec03f19e9
[expr.c] PR middle-end/71700: zero-extend sub-word value when widening constructor element

PR middle-end/71700
* expr.c (store_constructor): Mask sign-extended bits when widening
sub-word constructor element at the start of a word.

* gcc.c-torture/execute/pr71700.c: New test.

From-SVN: r238248
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr71700.c [new file with mode: 0644]