From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14059385840C; Thu, 6 Apr 2023 15:09:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14059385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680793782; bh=pEYQMSD1G9t0bFPQLE3COIbPTXaSRkVyhqW0EuoCsIA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HisLcGanOdxvNGSqtmo6L1pDyX/+lje5j+xn7Lirc5p7cabo3oVG2yvkrxp3PtPBF LKnkq1/u9hh/0h4IONIH2bf6H6YXRZ2Z1y9lh7L78kTtBq+bqsyw4wTyczFOM7Yh3h S+TGgg67qfyR2lpimpf9Qc9Sf+HnRr4IwATEZMQI= From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/82028] Windows x86_64 should not pass float aggregates in xmm Date: Thu, 06 Apr 2023 15:09:41 +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: 7.2.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: NEW 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=3D82028 --- Comment #7 from LIU Hao --- clang generates 14 bytes: ``` mov rax, 0x7FFFFFFFFFFFFFFF # 48 B8 FF FF FF FF FF FF FF 7F and rax, rcx # 48 23 C1 ret # C3 `` but in principle this function requires only 8 bytes: ``` lea rax, qword ptr [rcx + rcx] # 48 8D 04 09 shr rax, 1 # 48 D1 E8 ret # C3 ``=