public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jens.seifert at de dot ibm.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100866] New: PPC: Inefficient code for vec_revb(vector unsigned short) < P9 Date: Wed, 02 Jun 2021 07:14:05 +0000 [thread overview] Message-ID: <bug-100866-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100866 Bug ID: 100866 Summary: PPC: Inefficient code for vec_revb(vector unsigned short) < P9 Product: gcc Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jens.seifert at de dot ibm.com Target Milestone: --- Input: vector unsigned short revb(vector unsigned short a) { return vec_revb(a); } creates: _Z4revbDv8_t: .LFB1: .cfi_startproc .LCF1: 0: addis 2,12,.TOC.-.LCF1@ha addi 2,2,.TOC.-.LCF1@l .localentry _Z4revbDv8_t,.-_Z4revbDv8_t addis 9,2,.LC1@toc@ha addi 9,9,.LC1@toc@l lvx 0,0,9 xxlnor 32,32,32 vperm 2,2,2,0 blr Optimal code sequence: vector unsigned short revb_pwr7(vector unsigned short a) { return vec_rl(a, vec_splats((unsigned short)8)); } _Z9revb_pwr7Dv8_t: .LFB2: .cfi_startproc .localentry _Z9revb_pwr7Dv8_t,1 vspltish 0,8 vrlh 2,2,0 blr
next reply other threads:[~2021-06-02 7:14 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-02 7:14 jens.seifert at de dot ibm.com [this message] 2021-06-02 15:03 ` [Bug target/100866] " segher at gcc dot gnu.org 2021-06-15 9:22 ` luoxhu at gcc dot gnu.org 2021-06-15 9:56 ` luoxhu at gcc dot gnu.org 2021-06-15 13:50 ` segher at gcc dot gnu.org 2021-06-16 5:53 ` luoxhu at gcc dot gnu.org 2021-06-18 1:37 ` luoxhu at gcc dot gnu.org 2021-06-18 8:32 ` jens.seifert at de dot ibm.com 2021-06-21 2:29 ` luoxhu at gcc dot gnu.org 2021-06-21 4:20 ` jens.seifert at de dot ibm.com 2021-06-21 12:42 ` wschmidt at gcc dot gnu.org 2021-06-21 12:46 ` wschmidt at gcc dot gnu.org 2021-06-21 19:27 ` segher at gcc dot gnu.org 2021-06-22 2:05 ` luoxhu at gcc dot gnu.org 2021-06-23 20:06 ` segher at gcc dot gnu.org 2022-11-02 8:42 ` cvs-commit at gcc dot gnu.org 2022-12-01 2:07 ` cvs-commit at gcc dot gnu.org 2022-12-14 5:52 ` guihaoc at gcc dot gnu.org
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-100866-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).