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

            Bug ID: 95260
           Summary: Confusing comments in cpuid.h
           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
  Target Milestone: ---
            Target: i386, x86-64

cpuid.h has

/* XFEATURE_ENABLED_MASK register bits (%eax == 13, %ecx == 0) */
                                                ^^^ This is decimal.
/* Extended State Enumeration Sub-leaf (%eax == 13, %ecx == 1) */
                                                ^^^ This is decimal.
/* PT sub leaf (%eax == 14, %ecx == 0) */
                        ^^^ This is hex.

Since Intel SDM uses hex, comments should use hex eveywhere.

Reply via email to