public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101796] New: Miss optimization to optimized (vashl op0, (op1: const_duplicate_vector)) to (ashl op0 op1_inner) Date: Fri, 06 Aug 2021 03:22:06 +0000 [thread overview] Message-ID: <bug-101796-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101796 Bug ID: 101796 Summary: Miss optimization to optimized (vashl op0, (op1: const_duplicate_vector)) to (ashl op0 op1_inner) Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: crazylht at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-*-* i?86-*-* #include <immintrin.h> __m512i foo (__m512i a, short b) { return _mm512_srlv_epi16 (a, _mm512_set1_epi16 (3)); } llvm generate vpsrlw zmm0, zmm0, 3 but gcc generate foo(long long __vector(8), short): movl $3, %eax vpbroadcastw %eax, %zmm31 vpsrlvw %zmm31, %zmm0, %zmm0 ret
next reply other threads:[~2021-08-06 3:22 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-06 3:22 crazylht at gmail dot com [this message] 2021-08-06 3:23 ` [Bug target/101796] " crazylht at gmail dot com 2021-08-06 6:27 ` crazylht at gmail dot com 2021-08-27 7:26 ` pinskia at gcc dot gnu.org 2021-08-27 7:34 ` crazylht at gmail dot com 2021-12-15 8:27 ` cvs-commit at gcc dot gnu.org 2021-12-15 8:27 ` crazylht at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-101796-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).