re PR tree-optimization/89007 ([SVE] Implement generic vector average expansion)
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 9 Dec 2019 09:59:42 +0000 (09:59 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Mon, 9 Dec 2019 09:59:42 +0000 (09:59 +0000)
commit8e03b21e84e4b6a3c806bb48bb5eceac1f7ed273
treeea260ab621a5fe224c76b87e0f643c1e89502449
parent1d214c3f83521bcf0793f6460ace2bee89f670b8
re PR tree-optimization/89007 ([SVE] Implement generic vector average expansion)

2019-12-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/89007
* tree-vect-patterns.c (vect_recog_average_pattern): If there is no
target support available, generate code to distribute rshift over plus
and add a carry.

testsuite/
* gcc.target/aarch64/sve/pr89007-1.c: New test.
* gcc.target/aarch64/sve/pr89007-2.c: Likewise.

From-SVN: r279112
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/pr89007-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/sve/pr89007-2.c [new file with mode: 0644]
gcc/tree-vect-patterns.c