[0/5] x86: make better use of VPTERNLOG{D,Q}

Message ID 04f99abe-a563-d093-23b7-4abf0f91633d@suse.com
Headers
Series x86: make better use of VPTERNLOG{D,Q} |

Message

Jan Beulich June 21, 2023, 6:24 a.m. UTC
  While there are some quite sophisticated 4-operand expanders,
2-operand binary logic which can't be expressed by just VPAND,
VPANDN, VPOR, or VPXOR doesn't utilize this insn to carry out
such operations in a single insn. Therefore the first two
patches address one of the sub-aspects of PR target/93768 (which
imo was closed prematurely), while the latter three ones extend
what was done for PR target/100711.

1: use VPTERNLOG for further bitwise two-vector operations
2: use VPTERNLOG also for certain andnot forms
3: allow memory operand for AVX2 splitter for PR target/100711
4: further PR target/100711-like splitting
5: yet more PR target/100711-like splitting

Jan