diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-12-01 21:01:35 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-12-01 21:01:35 +0000 |
commit | b1b6836e90ee5e3f103e6150a7713bef51d5790c (patch) | |
tree | fab5425f914edd1fec50aa1a372f277f20dc7ab8 /gcc/gensupport.c | |
parent | e5f310313531456890c23279d248afb7e5cecf71 (diff) | |
download | gcc-b1b6836e90ee5e3f103e6150a7713bef51d5790c.zip gcc-b1b6836e90ee5e3f103e6150a7713bef51d5790c.tar.gz gcc-b1b6836e90ee5e3f103e6150a7713bef51d5790c.tar.bz2 |
PR68577: Handle narrowing for vector popcount, etc.
This patch adds support for simple cases where a vector
internal function returns wider results than the scalar
equivalent. It punts on other cases.
Tested on powerpc64-linux-gnu and x86_64-linux-gnu.
gcc/
PR tree-optimization/68577
* tree-vect-stmts.c (simple_integer_narrowing): New function.
(vectorizable_call): Restrict internal function handling
to NONE and NARROW cases, using simple_integer_narrowing
to test for the latter. Add cost of narrowing operation
and insert it where necessary.
gcc/testsuite/
PR tree-optimization/68577
* gcc.dg/vect/pr68577.c: New test.
From-SVN: r231131
Diffstat (limited to 'gcc/gensupport.c')
0 files changed, 0 insertions, 0 deletions