ptest

Packed Logical Comparison

PTEST xmm1, xmm2/m128

Bitwise compare of 128-bit value (AND) setting flags.

Details

The Packed Logical Comparison instruction bitwise compare of 128-bit value (AND) setting flags.

Pseudocode Operation

// Bitwise compare of 128-bit value (AND) setting flags

Example

PTEST xmm1, xmm2/m128

Encoding

Binary Layout
66
+0
0F
+1
38
+2
17
+3
 
Format SSE4.1
Opcode 66 0F 38 17
Extension SSE4.1

Operands

  • dest
    128-bit XMM SIMD register
  • src
    128-bit XMM SIMD register or Memory operand