]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Update STORE_MAX_PIECES
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Aug 2021 13:17:22 +0000 (06:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Aug 2021 19:59:38 +0000 (12:59 -0700)
commit5738a64f8b3cf132b88b39af84b9f5f5a9a1554c
tree3587f41db394a98e89ffefa94f794095f3fe630e
parent09dba016db937e61be21ef1e9581065a9ed2847d
x86: Update STORE_MAX_PIECES

Update STORE_MAX_PIECES to allow 16/32/64 bytes only if inter-unit move
is enabled since vec_duplicate enabled by inter-unit move is used to
implement store_by_pieces of 16/32/64 bytes.

gcc/

PR target/101742
* config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.

gcc/testsuite/

PR target/101742
* gcc.target/i386/pr101742a.c: New test.
* gcc.target/i386/pr101742b.c: Likewise.
gcc/config/i386/i386.h
gcc/testsuite/gcc.target/i386/pr101742a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101742b.c [new file with mode: 0644]