public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hongtao Liu <crazylht@gmail.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] [i386] Optimize __builtin_shuffle when it's used to zero the upper bits of the dest. [PR target/94680]
Date: Thu, 13 May 2021 13:52:37 +0800	[thread overview]
Message-ID: <CAMZc-byNVjqO=766hrR5RC6POwhjK8AmFNjpPAEj17bUG-s8Bg@mail.gmail.com> (raw)
In-Reply-To: <CAMZc-bym2qO+XhSYfVDwgYz+C7QFieck4s79F_s8Hnke14LRVg@mail.gmail.com>

There's a typo in the testcase, I've committed the patch as an obvious fix.

    Fix typo in testcase.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/avx-pr94680.c: Fix typo in testcase.

diff --git a/gcc/testsuite/gcc.target/i386/avx-pr94680.c
b/gcc/testsuite/gcc.target/i386/avx-pr94680.c
index a89e4967f64..cb5041b6af3 100644
--- a/gcc/testsuite/gcc.target/i386/avx-pr94680.c
+++ b/gcc/testsuite/gcc.target/i386/avx-pr94680.c
@@ -76,7 +76,7 @@ foo_v16hi_l (v16hi x)
 {
   return __builtin_shuffle ((v16hi)  { 0, 0, 0, 0, 0, 0, 0, 0,
                                       0, 0, 0, 0, 0, 0, 0, 0 }, x,
-                           (v16hi) { 16, 17, 18, 20, 21, 22, 23,
+                           (v16hi) { 16, 17, 18, 19, 20, 21, 22, 23,
                                      15, 0, 13, 2, 11, 4, 9, 6 });
 }

-- 
BR,
Hongtao

  reply	other threads:[~2021-05-13  5:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23  4:53 Hongtao Liu
2021-04-23  9:13 ` Jakub Jelinek
2021-04-25  6:57   ` Hongtao Liu
2021-05-12  7:30     ` Hongtao Liu
2021-05-12 14:19     ` Jakub Jelinek
2021-05-13  0:44       ` Hongtao Liu
2021-05-13  5:52         ` Hongtao Liu [this message]
2021-06-11  8:59 ` [PATCH] i386: Fix up *vec_concat<mode>_0_1 [PR101007] Jakub Jelinek
2021-06-11  9:34   ` Uros Bizjak

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='CAMZc-byNVjqO=766hrR5RC6POwhjK8AmFNjpPAEj17bUG-s8Bg@mail.gmail.com' \
    --to=crazylht@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    /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).