This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proper use of x86/x86_64 CPUID instruction with extended assembler


On 08/19/2015 10:48 AM, Jeffrey Walton wrote:
> Thanks. Another related question....
> 
> According to Assembler Templates
> (https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#AssemblerTemplate),
> the save of the EBX register and the call to CPUID can be reordered,
> even with volatile.

No, it doesn't say that.  It says that asm statements may not be
consecutive.  This is one asm statement.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]