public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/105920] New: __builtin_cpu_supports ("f16c") should check AVX
@ 2022-06-10 15:04 hjl.tools at gmail dot com
  2022-06-10 17:54 ` [Bug libgcc/105920] " hjl.tools at gmail dot com
  2022-06-14 13:52 ` [Bug target/105920] " hjl.tools at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2022-06-10 15:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105920
           Summary: __builtin_cpu_supports ("f16c") should check AVX
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

libgcc has

  if (ecx & bit_F16C)
    set_feature (FEATURE_F16C);
  if (ecx & bit_RDRND)
    set_feature (FEATURE_RDRND);
  if (ecx & bit_XSAVE)
    set_feature (FEATURE_XSAVE);
  if (avx_usable)
    {    
      if (ecx & bit_AVX)
        set_feature (FEATURE_AVX);
      if (ecx & bit_FMA)
        set_feature (FEATURE_FMA);
    }    

F16C should be enabled only if AVX is usable since F16C requires AVX.

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

end of thread, other threads:[~2022-06-14 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 15:04 [Bug libgcc/105920] New: __builtin_cpu_supports ("f16c") should check AVX hjl.tools at gmail dot com
2022-06-10 17:54 ` [Bug libgcc/105920] " hjl.tools at gmail dot com
2022-06-14 13:52 ` [Bug target/105920] " 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).