public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/100637] [i386] Vectorize 4-byte vectors
Date: Thu, 03 Jun 2021 18:06:30 +0000	[thread overview]
Message-ID: <bug-100637-4-YRXdBCYqtL@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100637-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:

https://gcc.gnu.org/g:5883e567564c5b3caecba0c13e8a360a14cdc846

commit r12-1197-g5883e567564c5b3caecba0c13e8a360a14cdc846
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Thu Jun 3 20:05:31 2021 +0200

    i386: Add insert and extract patterns for 4-byte vectors [PR100637]

    The patch introduces insert and extract patterns for 4-byte vectors.
    It effectively only emits PINSR and PEXTR instructions when available,
    otherwise falls back to generic code that emulates these instructions
    via inserts, extracts, logic operations and shifts in integer registers.

    Please note that generic fallback produces better code than the current
    approach of constructing new vector in memory (due to store forwarding
stall)
    so also enable QImode 8-byte vector inserts only with TARGET_SSE4_1.

    2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>

    gcc/
            PR target/100637
            * config/i386/i386-expand.c (ix86_expand_vector_set):
            Handle V2HI and V4QI modes.
            (ix86_expand_vector_extract): Ditto.
            * config/i386/mmx.md (*pinsrw): New insn pattern.
            (*pinsrb): Ditto.
            (*pextrw): Ditto.
            (*pextrw_zext): Ditto.
            (*pextrb): Ditto.
            (*pextrb_zext): Ditto.
            (vec_setv2hi): New expander.
            (vec_extractv2hihi): Ditto.
            (vec_setv4qi): Ditto.
            (vec_extractv4qiqi): Ditto.

            (vec_setv8qi): Enable only for TARGET_SSE4_1.
            (vec_extractv8qiqi): Ditto.

    gcc/testsuite/

            PR target/100637
            * gcc.target/i386/vperm-v2hi.c: New test.
            * gcc.target/i386/vperm-v4qi.c: Ditto.

  parent reply	other threads:[~2021-06-03 18:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 12:19 [Bug target/100637] New: " ubizjak at gmail dot com
2021-05-17 12:24 ` [Bug target/100637] " ubizjak at gmail dot com
2021-05-18 15:28 ` cvs-commit at gcc dot gnu.org
2021-05-20  9:12 ` cvs-commit at gcc dot gnu.org
2021-05-21  6:02 ` cvs-commit at gcc dot gnu.org
2021-05-21 11:16 ` cvs-commit at gcc dot gnu.org
2021-05-27  7:22 ` cvs-commit at gcc dot gnu.org
2021-05-27 12:48 ` cvs-commit at gcc dot gnu.org
2021-06-03 18:06 ` cvs-commit at gcc dot gnu.org [this message]
2021-06-04 15:38 ` cvs-commit at gcc dot gnu.org
2021-06-07 21:00 ` cvs-commit at gcc dot gnu.org
2021-07-05 19:11 ` ubizjak at gmail dot com
2021-07-08 10:21 ` cvs-commit at gcc dot gnu.org
2022-01-12 19:03 ` cvs-commit at gcc dot gnu.org
2022-01-12 19:23 ` ubizjak 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-100637-4-YRXdBCYqtL@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: link
Be 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).