public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95973] New: Add __cpuidex
@ 2020-06-29 16:31 hjl.tools at gmail dot com
  2020-07-18 11:53 ` [Bug target/95973] " hjl.tools at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2020-06-29 16:31 UTC (permalink / raw)
  To: gcc-bugs

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.

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

* [Bug target/95973] Add __cpuidex
  2020-06-29 16:31 [Bug target/95973] New: Add __cpuidex hjl.tools at gmail dot com
@ 2020-07-18 11:53 ` hjl.tools at gmail dot com
  2020-07-19 11:21 ` cvs-commit at gcc dot gnu.org
  2020-07-19 12:26 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2020-07-18 11:53 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2020-July/55
                   |                            |0244.html
           Keywords|                            |patch
   Target Milestone|---                         |11.0
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-07-18

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/pipermail/gcc-patches/2020-July/550244.html

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

* [Bug target/95973] Add __cpuidex
  2020-06-29 16:31 [Bug target/95973] New: Add __cpuidex hjl.tools at gmail dot com
  2020-07-18 11:53 ` [Bug target/95973] " hjl.tools at gmail dot com
@ 2020-07-19 11:21 ` cvs-commit at gcc dot gnu.org
  2020-07-19 12:26 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-07-19 11:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:29e1039ca211c4e3f1053925eda0a81c57cbcb0c

commit r11-2216-g29e1039ca211c4e3f1053925eda0a81c57cbcb0c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Jul 18 04:43:10 2020 -0700

    x86: Add __cpuidex and include guard to <cpuid.h>

    Add

    void __cpuidex (int __cpuid_info[4], int __leaf, int __subleaf);

    as well as include guard to <cpuid.h>.

    gcc/

            PR target/95973
            PR target/96238
            * config/i386/cpuid.h: Add include guard.
            (__cpuidex): New.

    gcc/testsuite/

            PR target/95973
            PR target/96238
            * gcc.target/i386/pr95973.c: New test.

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

* [Bug target/95973] Add __cpuidex
  2020-06-29 16:31 [Bug target/95973] New: Add __cpuidex hjl.tools at gmail dot com
  2020-07-18 11:53 ` [Bug target/95973] " hjl.tools at gmail dot com
  2020-07-19 11:21 ` cvs-commit at gcc dot gnu.org
@ 2020-07-19 12:26 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2020-07-19 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 11.

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

end of thread, other threads:[~2020-07-19 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 16:31 [Bug target/95973] New: Add __cpuidex hjl.tools at gmail dot com
2020-07-18 11:53 ` [Bug target/95973] " hjl.tools at gmail dot com
2020-07-19 11:21 ` cvs-commit at gcc dot gnu.org
2020-07-19 12:26 ` 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).