public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98648] New: Failure to optimize out no-op vector operation using andnot
@ 2021-01-13  1:02 gabravier at gmail dot com
  2021-01-13  1:09 ` [Bug target/98648] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gabravier at gmail dot com @ 2021-01-13  1:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98648
           Summary: Failure to optimize out no-op vector operation using
                    andnot
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

__m128 f(__m128 val) 
{
    return _mm_andnot_ps(_mm_set_ps1(0.0f), val);
}

This can be optimized to `return val;`. This optimization is done by LLVM, but
not by GCC.

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13  1:02 [Bug target/98648] New: Failure to optimize out no-op vector operation using andnot gabravier at gmail dot com
2021-01-13  1:09 ` [Bug target/98648] " pinskia at gcc dot gnu.org
2021-01-14 10:58 ` crazylht at gmail dot com
2021-01-14 11:16 ` jakub at gcc dot gnu.org
2021-01-14 15:32 ` gabravier at gmail dot com
2021-12-15  1:16 ` pinskia at gcc dot gnu.org
2021-12-15  1:16 ` pinskia at gcc dot gnu.org
2021-12-20  2:33 ` crazylht at gmail dot com
2021-12-20  2:35 ` pinskia 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).