TEST_(x86_instruction)
TEST (x86 instruction)
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 result of the AND is discarded. The OF
and CF
flags are set to 0
, while AF
flag is undefined. There are 9 different opcodes for the TEST instruction depending on the type and size of the operands. It can compare 8-bit, 16-bit, 32-bit or 64-bit values. It can also compare registers, immediate values and register indirect values.[1]
This article needs additional citations for verification. (March 2023) |
The topic of this article may not meet Wikipedia's general notability guideline. (March 2024) |