]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/70222 (Test miscompiled with -O1)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Jul 2016 21:49:58 +0000 (23:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Jul 2016 21:49:58 +0000 (23:49 +0200)
commit6c529f41e4577999c05889ca5279d16c366ef0d7
treed637065e70d88d46c5213b031947a426f5d05163
parentf3790390a97fffc4627e4dfef0284f485b441d6c
backport: re PR rtl-optimization/70222 (Test miscompiled with -O1)

Backported from mainline
2016-03-15  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/70222
* combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
optimization if mode is different from result_mode, queue up masking
of the result in outer_op.  Formatting fix.

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

From-SVN: r238140
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr70222-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr70222-2.c [new file with mode: 0644]