From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 587EA385417B; Fri, 26 Aug 2022 01:21:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 587EA385417B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661476904; bh=rJ2vg1TPzDR6fvLh760PLSmpeuUiBx5roN+0v6eUBPE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XLl9Q9jzCQg4PIwlpzsPQ0JzsqEkveZV4Mg6yU1bp4j0OGIgW+OWICQ/h03dGsE9V a77q3och1+QZ3e+iRc4TYmfl4cU8giGhka9MC8TmoTBiCkmgYPkeEwYGzu+rzhHJtX ry4jTDxd3SEZjTHNZHosV30s3XEd/J6l1D0LW64Q= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106704] [12/13 Regression] avx intrinsic not generating vblendvps instruction with -mavx Date: Fri, 26 Aug 2022 01:21:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106704 --- Comment #9 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:388f1a8cf0851854cc4d2ee99ed85600f0822afc commit r13-2208-g388f1a8cf0851854cc4d2ee99ed85600f0822afc Author: liuhongt Date: Mon Aug 22 10:41:16 2022 +0800 Don't gimple fold ymm-version vblendvpd/vblendvps/vpblendvb w/o TARGET_= AVX2 Since 256-bit vector integer comparison is under TARGET_AVX2, and gimple folding for vblendvpd/vblendvps/vpblendvb relies on that. Restrict gimple fold condition to TARGET_AVX2. gcc/ChangeLog: PR target/106704 * config/i386/i386-builtin.def (BDESC): Add CODE_FOR_avx_blendvpd256/CODE_FOR_avx_blendvps256 to corresponding builtins. * config/i386/i386.cc (ix86_gimple_fold_builtin): Don't fold IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_BLENDVPD256 w/o TARGET_AVX2. gcc/testsuite/ChangeLog: * gcc.target/i386/pr106704.c: New test.=