PR tree-optimization/78170: Truncate sign-extended padding when encoding bitfields
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 2 Nov 2016 09:28:35 +0000 (09:28 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 2 Nov 2016 09:28:35 +0000 (09:28 +0000)
commit4b2c06f49f8d7365e2aa15f32cbc6a726c9ff9fb
tree8f619725f7d1a2f96ab4e48798bf97f9f0d98f89
parent63e523d6f0853765adc332c7a68a8e6b16971d6b
PR tree-optimization/78170: Truncate sign-extended padding when encoding bitfields

PR tree-optimization/78170
* gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
introduced by native_encode_expr on little-endian as well.

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

From-SVN: r241779
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr78170.c [new file with mode: 0644]