public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/94962] New: Suboptimal AVX2 code for _mm256_zextsi128_si256(_mm_set1_epi8(-1))
@ 2020-05-05 21:41 nemo@self-evident.org
  2020-05-18  8:41 ` [Bug target/94962] " crazylht at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: nemo@self-evident.org @ 2020-05-05 21:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94962
           Summary: Suboptimal AVX2 code for
                    _mm256_zextsi128_si256(_mm_set1_epi8(-1))
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nemo@self-evident.org
  Target Milestone: ---

Background: https://stackoverflow.com/q/61601902/

GCC emits an unnecessary "vmovdqa xmm0,xmm0" for the following code:

     __m256i mask()
    {
        return _mm256_zextsi128_si256(_mm_set1_epi8(-1));
    }

Live example on godbolt: https://gcc.godbolt.org/z/PbsQDR

I have found no way to avoid this except by resorting to inline asm.

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

end of thread, other threads:[~2022-09-26  5:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 21:41 [Bug tree-optimization/94962] New: Suboptimal AVX2 code for _mm256_zextsi128_si256(_mm_set1_epi8(-1)) nemo@self-evident.org
2020-05-18  8:41 ` [Bug target/94962] " crazylht at gmail dot com
2020-05-18  9:37 ` jakub at gcc dot gnu.org
2020-05-18  9:55 ` crazylht at gmail dot com
2020-05-18 10:01 ` crazylht at gmail dot com
2020-05-18 15:43 ` nemo@self-evident.org
2020-05-19  6:14 ` crazylht at gmail dot com
2020-05-19 16:39 ` nemo@self-evident.org
2022-09-23  5:29 ` cvs-commit at gcc dot gnu.org
2022-09-23  5:32 ` crazylht at gmail dot com
2022-09-26  5:30 ` cvs-commit 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).