TESTUI
Determine User Interrupt Flag
stableVMJITAOTinstruction
Encodings
| Opcode | Instruction | Op/En | 64-bit | Compat/Legacy | Description |
|---|---|---|---|---|---|
F3 0F 01 ED | TESTUI | ZO | Valid | Invalid | Copies the current value of UIF into EFLAGS.CF. |
Measured cost
Loading measurements from arch-data...
Flags named
CFCarryPFParityAFAuxiliary carryZFZeroSFSignOFOverflow
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
#UD | The TESTUI instruction is not recognized in protected mode. |
Real address mode
#UD | The TESTUI instruction is not recognized in real-address mode. |
Virtual-8086 mode
#UD | The TESTUI instruction is not recognized in virtual-8086 mode. |
Compatibility mode
#UD | The TESTUI instruction is not recognized in compatibility mode. |
64-bit mode
#UD | If the LOCK prefix is used. If executed inside an enclave. If CR4.UINTR = 0. If CPUID.07H.00H:EDX.UINTR[5] = 0. |