re PR tree-optimization/79737 (wrong code at -O2 and -O3 on x86_64-linux-gnu (in...
authorJakub Jelinek <jakub@redhat.com>
Tue, 28 Feb 2017 22:39:11 +0000 (23:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Feb 2017 22:39:11 +0000 (23:39 +0100)
commitad1de65225fc1ac05fe6b05b6198dc50a51e4935
treeff4ffb92de5c47b0d5e963ed565075997888b190
parent7efb3707f267d5d47c4e0c929fa269adf32b11bc
re PR tree-optimization/79737 (wrong code at -O2 and -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit modes))

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.

From-SVN: r245795
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]