]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: further PR target/100711-like splitting
authorJan Beulich <jbeulich@suse.com>
Wed, 5 Jul 2023 07:48:47 +0000 (09:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Jul 2023 07:48:47 +0000 (09:48 +0200)
commitfa58c2871a1235cb5ba475303a2bd11ae90416d5
treed6bd11996e98cefcfc7caac5164f91511d51879e
parent3186ef0cb9e2d25e8455f9990e50187e3d1eee19
x86: further PR target/100711-like splitting

With respective two-operand bitwise operations now expressable by a
single VPTERNLOG, add splitters to also deal with ior and xor
counterparts of the original and-only case. Note that the splitters need
to be separate, as the placement of "not" differs in the final insns
(*iornot<mode>3, *xnor<mode>3) which are intended to pick up one half of
the result.

gcc/

PR target/100711
* config/i386/sse.md: New splitters to simplify
not;vec_duplicate;{ior,xor} as vec_duplicate;{iornot,xnor}.

gcc/testsuite/

PR target/100711
* gcc.target/i386/pr100711-4.c: New test.
* gcc.target/i386/pr100711-5.c: New test.
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/pr100711-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr100711-5.c [new file with mode: 0644]