From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A2EB3858C66; Fri, 12 Jan 2024 02:30:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A2EB3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705026634; bh=u5td4qEMCpQ3Bc5ZSNeTux8CnKNg0VOceJ0LKcM+7yg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=liNMTcS0TuSziCayPqBGLU5kixTLVJV6SOq3OqzcKTLxTmTp2er7+dmUgm6v2i/3g g35XpoRroI/VPWuclq2LCNS0bv3+Vgc41qV4pX7Pk9oz9dh8DT5PIYbjUl9Lg26IDV TFAvXDdbFUKV1ExCUkuN6tTGEzF3DAejeRbOzhHM= From: "liuhongt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113345] miss optimization for psign{b,w,d}. Date: Fri, 12 Jan 2024 02:30:34 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: liuhongt at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D113345 --- Comment #1 from Hongtao Liu --- >=20 > maybe we can just refactor the pattern as blow, then combine can generate > the pattern for us. >=20 > 22115(define_insn "_psign3" > 22116 [(set (match_operand:VI124_AVX2 0 "register_operand" "=3Dx,x") > 22117 (unspec:VI124_AVX2 > 22118 [(match_operand:VI124_AVX2 1 "register_operand" "0,x") > (neg:VI124:(match_dup 1) > 22119 (match_operand:VI124_AVX2 2 "vector_operand" "xja,xjm")] > 22120 UNSPEC_PBLENDV))] Not for VI2, but ok for VI14.=