ktestw

Test Masks Word

KTESTW k1, k2

ANDs 16-bit masks and sets EFLAGS (ZF/CF).

Details

The Test Masks Word instruction aNDs 16-bit masks and sets EFLAGS (ZF/CF).

Pseudocode Operation

// ANDs 16-bit masks and sets EFLAGS (ZF/CF)

Example

KTESTW k1, k2

Encoding

Binary Layout
EVEX
+0
0F
+4
99
+5
 
Format EVEX
Opcode 0F 99
Extension AVX-512F

Operands

  • dest
    AVX-512 opmask register (k0-k7)
  • src
    AVX-512 opmask register (k0-k7)