ktestb

Test Masks Byte

KTESTB k1, k2

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

Details

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

Pseudocode Operation

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

Example

KTESTB k1, k2

Encoding

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

Operands

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