public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98387] New: GCC >= 6 cannot inline _mm_cmp_ps on SSE targets
@ 2020-12-19  5:36 danielhanchen at gmail dot com
  2020-12-19  6:10 ` [Bug target/98387] " danielhanchen at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danielhanchen at gmail dot com @ 2020-12-19  5:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98387
           Summary: GCC >= 6 cannot inline _mm_cmp_ps on SSE targets
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danielhanchen at gmail dot com
  Target Milestone: ---

https://gcc.godbolt.org/z/493ead

GCC since version 6.1 cannot inline _mm_cmp_ps on targets supporting only SSE
(Nehalem, Tremont etc). From >= SandyBridge, everything inlines fine.

_mm_cmp_ps is called by using it as a function argument (ie auto function).

All SSE only machines use a jmp to _mm_cmp_ps, but it should be inlined.

O3 ffast-math is also used, and the function is declared inline.

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

end of thread, other threads:[~2020-12-20  2:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19  5:36 [Bug c++/98387] New: GCC >= 6 cannot inline _mm_cmp_ps on SSE targets danielhanchen at gmail dot com
2020-12-19  6:10 ` [Bug target/98387] " danielhanchen at gmail dot com
2020-12-19 14:21 ` hjl.tools at gmail dot com
2020-12-19 14:52 ` danielhanchen at gmail dot com
2020-12-19 18:01 ` hjl.tools at gmail dot com
2020-12-20  2:53 ` danielhanchen 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).