Function _mm_ternarylogic_epi32

#[target_feature(enable = "avx512f", enable = "avx512vl")]
pub fn _mm_ternarylogic_epi32(a: __m128i, b: __m128i, c: __m128i, IMM8: i32) -> __m128i

Bitwise ternary logic that provides the capability to implement any three-operand binary function; the specific binary function is specified by value in imm8. For each bit in each packed 32-bit integer, the corresponding bit from a, b, and c are used to form a 3 bit index into imm8, and the value at that bit in imm8 is written to the corresponding bit in dst.

Intel's documentation