re PR rtl-optimization/63843 (wrong code generation at -O1 and higher)
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Nov 2014 08:18:53 +0000 (09:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Nov 2014 08:18:53 +0000 (09:18 +0100)
commit05f9c67507bd614e1fa1e5184a855a8257bc04fe
treeadd405212855dc07bdc60d4afe8c74e3fe7767ca
parent26c87b1a648dce3764f9efdb56c75dcf953413c5
re PR rtl-optimization/63843 (wrong code generation at -O1 and higher)

PR rtl-optimization/63843
* simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
optimization of ashiftrt of subreg of lshiftrt, check that code
is ASHIFTRT.

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

From-SVN: r217753
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr63843.c [new file with mode: 0644]