public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95260] New: Confusing comments in cpuid.h
@ 2020-05-21 14:13 hjl.tools at gmail dot com
  2020-05-21 14:25 ` [Bug target/95260] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-21 14:13 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-21 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21 14:13 [Bug target/95260] New: Confusing comments in cpuid.h hjl.tools at gmail dot com
2020-05-21 14:25 ` [Bug target/95260] " marxin at gcc dot gnu.org
2020-05-21 14:30 ` cvs-commit at gcc dot gnu.org
2020-05-21 14:53 ` hjl.tools at gmail dot com
2020-05-21 14:54 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).