Account for high/lo_sum simplification with displacements
authorRobert Suchanek <robert.suchanek@imgtec.com>
Fri, 16 Jan 2015 12:31:01 +0000 (12:31 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Fri, 16 Jan 2015 12:31:01 +0000 (12:31 +0000)
commitece4d1aca6232a26f44e8fa5435f429f9bcde6db
tree24118a1005abdf80d65240f679378bcda19c1867
parent4baa25d3fbee279835c1e7e53ef1460d41291b28
Account for high/lo_sum simplification with displacements

gcc/
* simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
(high x) y) to y if x and y have the same base.

gcc/testsuite/
* gcc.c-torture/compile/20150108.c: New test.

From-SVN: r219729
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20150108.c [new file with mode: 0644]