]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
re PR rtl-optimization/70429 (Wrong code with -O1.)
authorJakub Jelinek <jakub@redhat.com>
Tue, 29 Mar 2016 18:49:00 +0000 (20:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 29 Mar 2016 18:49:00 +0000 (20:49 +0200)
commita362f023e538bc30dd9f2107f71c2435f62b9289
tree403c3e385daa0141fced2cc170fd23bc95606ee5
parente0bffbbb5936be8b6a35d868db4226ca1b2365fa
re PR rtl-optimization/70429 (Wrong code with -O1.)

PR rtl-optimization/70429
* combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
(cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
mode != result_mode.

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

From-SVN: r234531
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr70429.c [new file with mode: 0644]