combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into (plus (ashift X...
commitcc55969de9b20786ade9537e6497532972e6f566
authorJeff Law <law@redhat.com>
Fri, 22 May 2015 20:08:43 +0000 (22 14:08 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 22 May 2015 20:08:43 +0000 (22 14:08 -0600)
tree8753bdc32ff1157eb172568c94c63b6eb3e4fee9
parent83844a7d2a66a0c3b98687890419003980e4bf96
combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into (plus (ashift X log2) Y) if...

* combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
(plus (ashift X log2) Y) if it is a split point.

* gcc.target/hppa/shadd-3.c: New test.

From-SVN: r223583
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/hppa/shadd-3.c [new file with mode: 0644]