This is the mail archive of the gcc-bugs@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]

[Bug target/77756] __get_cpuid() returns wrong values for level 7 (extended features)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77756

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
Level 7 returns the maximum input value in EAX with ECX == 0.
Level 9 and 10 don't use ECX as input.
Level 11 takes ECX[7:0] as input level number.
Level 13 takes many values in ECX as input.
....

There is no fixed rule of ECX input for level >= 7.

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