TEST (x86 instruction)

In the x86 assembly language, the TEST instruction performs a bitwise AND on two operands.

The flags SF, ZF, PF are modified while the numerical result of the AND is discarded.

There are 9 different opcodes for the TEST instruction depending on the type and size of the operands.

[1] The TEST operation clears the flags CF and OF to zero.

You can help Wikipedia by expanding it.This software article is a stub.