TESTUI

Determine User Interrupt Flag

stableVMJITAOTinstruction

Encodings

OpcodeInstructionOp/En64-bitCompat/LegacyDescription
F3 0F 01 EDTESTUIZOValidInvalidCopies the current value of UIF into EFLAGS.CF.

Measured cost

Loading measurements from arch-data...

Flags named

Operation

CF := UIF;
ZF := AF := OF := PF := SF := 0;

Flags affected

The ZF, OF, AF, PF, SF flags are cleared and the CF flags to the value of the user interrupt flag.

Exceptions

Protected mode
#UDThe TESTUI instruction is not recognized in protected mode.
Real address mode
#UDThe TESTUI instruction is not recognized in real-address mode.
Virtual-8086 mode
#UDThe TESTUI instruction is not recognized in virtual-8086 mode.
Compatibility mode
#UDThe TESTUI instruction is not recognized in compatibility mode.
64-bit mode
#UDIf the LOCK prefix is used. If executed inside an enclave. If CR4.UINTR = 0. If CPUID.07H.00H:EDX.UINTR[5] = 0.

Sources