From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC07F396E42B; Wed, 2 Sep 2020 08:24:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC07F396E42B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599035099; bh=iSTv+qB2BhcIRZX2QvLXBz6ExOi7JGgNsNFOGHgpJBE=; h=From:To:Subject:Date:From; b=hCVLQ8hmbt/emzmWX/T/xJLYUZpBN6XxsZD7z4mbmRF667WmCNVZC+pJhzXScBQ1q LtDY78cLnpF4f7Mj4CTBbLtmr8YD/6QR6y3tp+DKx0A1lUrjbaS+2noilmw/g+LIJ8 ixe0XiktKhBk2WBDkjxyGk1w2JR8Ih8dVS28I7nQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96895] New: ABI of returning V1DF differs between GCC and clang Date: Wed, 02 Sep 2020 08:24:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 08:24:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96895 Bug ID: 96895 Summary: ABI of returning V1DF differs between GCC and clang Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- clang and GCC differ in returning v1df: typedef double v1df __attribute__((vector_size(8))); v1df foo (v1df x) { return x; } clang returns in %xmm0 while GCC returns by invisible reference (thus in memory). v1df arguments are passed on the stack with both compilers. GCC behaves this way because the v1df type has BLKmode. If we assign the type DFmode (V1DFmode is unavailable) then GCC passes and returns in %x= mm0. The target should likely not work on modes here but on types.=