From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B38BC3858D29; Mon, 17 Jun 2024 13:06:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B38BC3858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718629611; bh=9ql+qAW1SYSucSKh8NueYTnTwziSEIzoGBDHxrRZGlE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pW5uC9vh7MZIX5FcGmVP0Dw3zqQcF3QgNm9irWUrmtOCoC/1ICYjd854B3VlijVWP U558sdlYDqsg4+BUo0aL1uqoTyGY+PyAX9f+20yZuXZDkgWVPTTkm1ky5KsbWC5una e4MUK0GdJsyhVmsrjGxfMRidj9kWok1X8ZCk6rK8= From: "jondaniel879 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115362] fixed_size_simd dot product recognition and sign of determinant not working for stdx::reduce Date: Mon, 17 Jun 2024 13:06:51 +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.1.1 X-Bugzilla-Keywords: missed-optimization, ssemmx, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jondaniel879 at gmail dot com X-Bugzilla-Status: WAITING 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=3D115362 --- Comment #22 from Jon Daniel --- The generated assembler output snippet: g++: vdpps $113, 72(%rsp), 24(%rsp), %xmm3 vdpps $113, 72(%rsp), 24(%rsp), %xmm2 vsubss %xmm2, %xmm3, %xmm0 Notice the second dot product result as the first source operand clang++: vdpps $113, %xmm2, %xmm1, %xmm4 vdpps $113, %xmm0, %xmm1, %xmm1 vsubss %xmm4, %xmm0, %xmm0 Notice the first dot product result as the first source operand=