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/110108] [14 Regression] Wrong code from combining VPABSB/VPBLENDVB since g:1ede03e2d0437ea9c2f7
Date: Fri, 09 Jun 2023 01:42:17 +0000	[thread overview]
Message-ID: <bug-110108-4-ciWRBq7Q6s@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-110108-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:07b86ab138bf8be8cb331015cd2b9775c6856ac6

commit r14-1640-g07b86ab138bf8be8cb331015cd2b9775c6856ac6
Author: liuhongt <hongtao.liu@intel.com>
Date:   Mon Jun 5 11:59:33 2023 +0800

    Fold _mm{,256,512}_abs_{epi8,epi16,epi32,epi64} into gimple ABSU_EXPR +
VCE.

    r14-1145 fold the intrinsics into gimple ABS_EXPR which has UB for
    TYPE_MIN, but PABSB will store unsigned result into dst. The patch
    uses ABSU_EXPR + VCE instead of ABS_EXPR.

    Also don't fold _mm_abs_{pi8,pi16,pi32} w/o TARGET_64BIT since 64-bit
    vector absm2 is guarded with TARGET_MMX_WITH_SSE.

    gcc/ChangeLog:

            PR target/110108
            * config/i386/i386.cc (ix86_gimple_fold_builtin): Fold
            _mm{,256,512}_abs_{epi8,epi16,epi32,epi64} into gimple
            ABSU_EXPR + VCE, don't fold _mm_abs_{pi8,pi16,pi32} w/o
            TARGET_64BIT.
            * config/i386/i386-builtin.def: Replace CODE_FOR_nothing with
            real codename for __builtin_ia32_pabs{b,w,d}.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr110108.c: New test.
            * gcc.target/i386/pr110108-3.c: New test.
            * gcc.target/i386/pr109900.c: Adjust testcase.

  parent reply	other threads:[~2023-06-09  1:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-03 19:09 [Bug target/110108] New: [14 Regression] Wrong code from combining VPABSB/VPBLENDVB since 1ede03e2d0437ea9c2f7 benjsith at gmail dot com
2023-06-03 19:46 ` [Bug target/110108] [14 Regression] Wrong code from combining VPABSB/VPBLENDVB since g:1ede03e2d0437ea9c2f7 pinskia at gcc dot gnu.org
2023-06-03 19:48 ` pinskia at gcc dot gnu.org
2023-06-05  3:39 ` crazylht at gmail dot com
2023-06-05  6:48 ` rguenth at gcc dot gnu.org
2023-06-09  1:42 ` cvs-commit at gcc dot gnu.org [this message]
2023-06-09  1:42 ` cvs-commit at gcc dot gnu.org
2023-06-09  1:46 ` cvs-commit at gcc dot gnu.org
2023-06-09  1:47 ` cvs-commit at gcc dot gnu.org
2023-06-09  3:05 ` crazylht at gmail dot com
2023-06-09 11:47 ` benjsith at gmail dot com
2023-06-09 14:44 ` pinskia 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-110108-4-ciWRBq7Q6s@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).