https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95973
Bug ID: 95973 Summary: Add __cpuidex Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, wwwhhhyyy333 at gmail dot com Target Milestone: --- Target: i386, x86-64 GCC has __cpuid_count(leaf,subleaf, a,b,c,d) MSVS has void __cpuidex( int cpuInfo[4], int function_id, int subfunction_id ); MSVS's interface is a little more sensible, passing & returning an array vs modifying 4 arguments in an un-C-language-like way. We should add __cpuidex.