[aarch64][vect] Support V8QI->V8HI WIDEN_ patterns
Joel Hutton
Joel.Hutton@arm.com
Tue Feb 9 16:40:20 GMT 2021
Hi Richards,
This patch adds support for the V8QI->V8HI case from widening vect patterns as discussed to target PR98772.
Bootstrapped and regression tested on aarch64.
[aarch64][vect] Support V8QI->V8HI WIDEN_ patterns
In the case where 8 out of every 16 elements are widened using a
widening pattern and the next 8 are skipped the patterns are not
recognized. This is because they are normally used in a pair, such as
VEC_WIDEN_MINUS_HI/LO, to achieve a v16qi->v16hi conversion for example.
This patch adds support for V8HI->V8QI patterns.
gcc/ChangeLog:
PR tree-optimisation/98772
* optabs-tree.c (supportable_convert_operation): Add case for V8QI->V8HI
* tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): New function to generate promotion stmts for V8QI->V8HI
(vectorizable_conversion): Add case for V8QI->V8HI
gcc/testsuite/ChangeLog:
PR tree-optimisation/98772
* gcc.target/aarch64/pr98772.c: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb14134(1).patch
Type: text/x-patch
Size: 9982 bytes
Desc: rb14134(1).patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210209/cb4f5afd/attachment-0001.bin>
More information about the Gcc-patches
mailing list