public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/97688] New: check_vect doesn't detect AVX2 on zen
@ 2020-11-03  8:51 rguenth at gcc dot gnu.org
  2020-11-03  9:08 ` [Bug testsuite/97688] " ubizjak at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-03  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97688
           Summary: check_vect doesn't detect AVX2 on zen
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Running on a zen2 machine (3900X) check_vect() doesn't detect AVX2 which
asks for

    /* Determine what instruction set we've been compiled for, and detect
       that we're running with it.  This allows us to at least do a compile
       check for, e.g. SSE4.1 when the machine only supports SSE2.  */
# if defined(__AVX2__)
    want_level = 7, want_b = bit_AVX2;

but __get_cpuid returns 0 for b

__maxlevel is 16

and regs after cpuid are

(gdb) info reg 
rax            0x0                 0
rbx            0x0                 0
rcx            0x0                 0
rdx            0x0                 0
rsi            0x68747541          1752462657
rdi            0x0                 0

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

end of thread, other threads:[~2020-11-03 13:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03  8:51 [Bug testsuite/97688] New: check_vect doesn't detect AVX2 on zen rguenth at gcc dot gnu.org
2020-11-03  9:08 ` [Bug testsuite/97688] " ubizjak at gmail dot com
2020-11-03  9:18 ` rguenth at gcc dot gnu.org
2020-11-03  9:19 ` rguenth at gcc dot gnu.org
2020-11-03  9:40 ` ubizjak at gmail dot com
2020-11-03 10:14 ` cvs-commit at gcc dot gnu.org
2020-11-03 10:18 ` cvs-commit at gcc dot gnu.org
2020-11-03 10:19 ` cvs-commit at gcc dot gnu.org
2020-11-03 10:20 ` cvs-commit at gcc dot gnu.org
2020-11-03 10:21 ` rguenth at gcc dot gnu.org
2020-11-03 12:18 ` hjl.tools at gmail dot com
2020-11-03 12:40 ` rguenther at suse dot de
2020-11-03 12:51 ` hjl.tools at gmail dot com
2020-11-03 13:18 ` rguenth at gcc dot gnu.org

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).