VPTERNLOGx imm8 Calculator

Enter a bitwise logical expression in C/C++ style, to find the value of imm8 for VPTERNLOGQ / VPTERNLOGD instruction.

Variables: a = operand 1, b = operand 2, c = operand 3

Constants: 0, 1

Operators: () ~ & ^ | ?: (order of precedence)

Functions: major(x, y, z), minor(x, y, z), eq(x, y), neq(x, y), and(x, y...), or(x, y...), xor(x, y...), nand(x, y...), nor(x, y...), xnor(x, y...), not(x)

major(x, y, z) returns 1 if two or three of the arguments are 1. minor(x, y, z) returns 1 if none or one of the areguments is 1.

Exp


x86/x64 SIMD Instruction List  Feedback