Head over to https://www.sandpile.org, and find VPTERNLOG on
the 3-byte opcode page https://www.sandpile.org/x86/opc_3.htm
and you will not only see Intel's apparent past plan for the
variants with byte and word masking (AVX512BITALG2), but also
the links from the Ib operand to the ternary logic table page
https://www.sandpile.org/x86/ternlog.htm with all 256 cases.