Does the x86 CPUID instruction alter the flags register? I don't have access to a debugger, unfortunately.
I'm writing some GCC assembler code inside a D program, and I was wondering whether to put "cc" in the clobbers, just to be on the safe side.
Does the x86 CPUID instruction alter the flags register? I don't have access to a debugger, unfortunately.
I'm writing some GCC assembler code inside a D program, and I was wondering whether to put "cc" in the clobbers, just to be on the safe side.
As per http://www.felixcloutier.com/x86/CPUID.html
Flags Affected
None.
There is one link between CPUID
and eflags though.
A x86 CPU only has support for CPUID
if ...
The ID flag (bit 21) in the EFLAGS register indicates support for the CPUID instruction. If a software procedure can set and clear this flag, the processor executing the procedure supports the CPUID instruction.