diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2023-11-17 17:12:32 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2023-11-17 17:19:39 +0800 |
commit | cd295a80c91040fd4d826528c8e8e07fe909ae62 (patch) | |
tree | 6831d9e61e1285c088e922d444ba8efa63aa784d /gcc/tree-vect-loop.cc | |
parent | 5c8cb429762062f851a56801f021d81f4ecfe3d9 (diff) | |
download | gcc-cd295a80c91040fd4d826528c8e8e07fe909ae62.zip gcc-cd295a80c91040fd4d826528c8e8e07fe909ae62.tar.gz gcc-cd295a80c91040fd4d826528c8e8e07fe909ae62.tar.bz2 |
rs6000: Enable vector mode for by pieces equality compare
This patch adds a new expand pattern - cbranchv16qi4 to enable vector
mode by pieces equality compare on rs6000. The macro MOVE_MAX_PIECES
(COMPARE_MAX_PIECES) is set to 16 bytes when EFFICIENT_UNALIGNED_VSX
is enabled, otherwise keeps unchanged. The macro STORE_MAX_PIECES is
set to the same value as MOVE_MAX_PIECES by default, so now it's
explicitly defined and keeps unchanged.
gcc/
PR target/111449
* config/rs6000/altivec.md (cbranchv16qi4): New expand pattern.
* config/rs6000/rs6000.cc (rs6000_generate_compare): Generate
insn sequence for V16QImode equality compare.
* config/rs6000/rs6000.h (MOVE_MAX_PIECES): Define.
(STORE_MAX_PIECES): Define.
gcc/testsuite/
PR target/111449
* gcc.target/powerpc/pr111449-1.c: New.
* gcc.dg/tree-ssa/sra-17.c: Add additional options for 32-bit powerpc.
* gcc.dg/tree-ssa/sra-18.c: Likewise.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions