PR tree-optimization/79737
commita425d9aff519672639ebcc6f27d674bbc9b91cf9
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Feb 2017 22:39:11 +0000 (28 22:39 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Feb 2017 22:39:11 +0000 (28 22:39 +0000)
treeff4ffb92de5c47b0d5e963ed565075997888b190
parent9ee6024bcc5ecead901a58523fc30dc97cebdfce
PR tree-optimization/79737
* gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
instead of byte_size.  Formatting fix.
(shift_bytes_in_array_right): Formatting fix.

* gcc.c-torture/execute/pr79737-1.c: New test.
* gcc.c-torture/execute/pr79737-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245795 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr79737-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr79737-2.c [new file with mode: 0644]