From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lxmtout2.gsi.de (lxmtout2.gsi.de [140.181.3.112]) by sourceware.org (Postfix) with ESMTPS id 7E0873858D20; Wed, 17 Apr 2024 07:57:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E0873858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gsi.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gsi.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7E0873858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.181.3.112 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713340660; cv=none; b=Sylw5/ImY8PprbMGW0ysDQYaJStvcONd8uZ/XiRlR7h7mRIIXRfajnfIG/suMs0Mz0WGpDDka+6aoOnj4w4DlqL9ZER8ukkUMVaVpKrdSFe0yHaYnNxkQDnsP2YEdSf2LMCWKil4uQhrceRV/YZQ674icnaWaDtfxHRzrBMz83M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713340660; c=relaxed/simple; bh=njWYFFbqkEjjkuxJdtPDiIPPMg6roawqL588G08zjog=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=WVF1Nfl+saHPHphKcl05hRdnJtf20D377/+ZR8vHdR3loNoyuAFLIyWYq2i/8urXzUzWS7vY5ta73YMAEDD2niac0DcehwNkX02u6oKKZ7UgOPFuRPcJJaavH04ZEgO3PWZyyvTl+FmGcNYJYHVOun2vkwjn2Rp8ljNkbt5Vu6w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by lxmtout2.gsi.de (Postfix) with ESMTP id 389A320350E8; Wed, 17 Apr 2024 09:57:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lxmtout2.gsi.de Received: from lxmtout2.gsi.de ([127.0.0.1]) by localhost (lxmtout2.gsi.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o_pMyDIbgfiX; Wed, 17 Apr 2024 09:57:37 +0200 (CEST) Received: from srvEX8.campus.gsi.de (unknown [10.10.4.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lxmtout2.gsi.de (Postfix) with ESMTPS id 19E2420350E2; Wed, 17 Apr 2024 09:57:37 +0200 (CEST) Received: from minbar.localnet (140.181.3.12) by srvEX8.campus.gsi.de (10.10.4.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 17 Apr 2024 09:57:36 +0200 From: Matthias Kretz To: , Subject: [PATCH] libstdc++: Avoid ill-formed types on ARM Date: Wed, 17 Apr 2024 09:57:36 +0200 Message-ID: <15472051.tv2OnDr8pf@minbar> Organization: GSI Helmholtz Center for Heavy Ion Research MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2982663.BddDVKsqQX"; micalg=pgp-sha512; protocol="application/pgp-signature" X-Originating-IP: [140.181.3.12] X-ClientProxiedBy: srvEX7.Campus.gsi.de (10.10.4.97) To srvEX8.campus.gsi.de (10.10.4.160) X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,BODY_8BITS,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --nextPart2982663.BddDVKsqQX Content-Type: multipart/mixed; boundary="nextPart4519427.1IzOArtZ34"; protected-headers="v1" Content-Transfer-Encoding: 7Bit From: Matthias Kretz To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: [PATCH] libstdc++: Avoid ill-formed types on ARM Date: Wed, 17 Apr 2024 09:57:36 +0200 Message-ID: <15472051.tv2OnDr8pf@minbar> Organization: GSI Helmholtz Center for Heavy Ion Research MIME-Version: 1.0 This is a multi-part message in MIME format. --nextPart4519427.1IzOArtZ34 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" VGVzdGVkIG9uIGFybS1saW51eC1nbnVlYWJpaGYsIHBvd2VycGM2NGxlLWxpbnV4LWdudSwgYW5k IGFhcmNoNjQtbGludXgtZ251LgoKT0sgZm9yIHRydW5rIGFuZCBiYWNrcG9ydHM/CgotLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLSA4PCAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoKVGhp cyByZXNvbHZlcyBmYWlsaW5nIHRlc3RzIGluIGNoZWNrLXNpbWQuCgpTaWduZWQtb2ZmLWJ5OiBN YXR0aGlhcyBLcmV0eiA8bS5rcmV0ekBnc2kuZGU+CgpsaWJzdGRjKystdjMvQ2hhbmdlTG9nOgoK CVBSIGxpYnN0ZGMrKy8xMTQ3NTAKCSogaW5jbHVkZS9leHBlcmltZW50YWwvYml0cy9zaW1kX2J1 aWx0aW4uaAoJKF9TaW1kSW1wbEJ1aWx0aW46Ol9TX2xvYWQsIF9TX3N0b3JlKTogRmFsbCBiYWNr IHRvIGNvcHlpbmcKCXNjYWxhcnMgaWYgdGhlIG1lbW9yeSB0eXBlIGNhbm5vdCBiZSB2ZWN0b3Jp emVkIGZvciB0aGUgdGFyZ2V0LgotLS0KIGxpYnN0ZGMrKy12My9pbmNsdWRlL2V4cGVyaW1lbnRh bC9iaXRzL3NpbWRfYnVpbHRpbi5oIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRp b25zKCspLCAyIGRlbGV0aW9ucygtKQoKCi0tCuKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgOKUgOKUgOKUgAogRHIuIE1hdHRoaWFzIEtyZXR6ICAgICAgICAgICAgICAg ICAgICAgICAgICAgaHR0cHM6Ly9tYXR0a3JldHouZ2l0aHViLmlvCiBHU0kgSGVsbWhvbHR6IENl bnRyZSBmb3IgSGVhdnkgSW9uIFJlc2VhcmNoICAgICAgICAgICAgICAgaHR0cHM6Ly9nc2kuZGUK IHN0ZOKCkzo6c2ltZArilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDi lIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDi lIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDi lIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDi lIDilIDilIA= --nextPart4519427.1IzOArtZ34 Content-Disposition: inline; filename="0001-libstdc-Avoid-ill-formed-types-on-ARM.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="0001-libstdc-Avoid-ill-formed-types-on-ARM.patch" diff --git a/libstdc++-v3/include/experimental/bits/simd_builtin.h b/libstdc++-v3/include/experimental/bits/simd_builtin.h index 28227a5d97f..af0c4886108 100644 --- a/libstdc++-v3/include/experimental/bits/simd_builtin.h +++ b/libstdc++-v3/include/experimental/bits/simd_builtin.h @@ -1464,7 +1464,7 @@ _S_broadcast(_Tp __x) noexcept [&](auto __i) constexpr { return static_cast<_Tp>(__i < _Np ? __mem[__i] : 0); }); - else if constexpr (sizeof(_Up) > 8) + else if constexpr (sizeof(_Up) > 8 or __vectorized_sizeof<_Up>() <= sizeof(_Up)) return __generate_vector<_Tp, _SimdMember<_Tp>::_S_full_size>( [&](auto __i) constexpr _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA { return static_cast<_Tp>(__i < _Np ? __mem[__i] : 0); @@ -1536,7 +1536,7 @@ _S_masked_load(_SimdWrapper<_Tp, _Np> __merge, _MaskMember<_Tp> __k, for (size_t __i = 0; __i < _Np; ++__i) __mem[__i] = __v[__i]; } - else if constexpr (sizeof(_Up) > 8) + else if constexpr (sizeof(_Up) > 8 or __vectorized_sizeof<_Up>() <= sizeof(_Up)) __execute_n_times<_Np>([&](auto __i) constexpr _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA { __mem[__i] = __v[__i]; }); --nextPart4519427.1IzOArtZ34-- --nextPart2982663.BddDVKsqQX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEroo/QdgfHhrjcEOni/oLaRkZhWgFAmYfgPAACgkQi/oLaRkZ hWiL2Qf/YinKaSlMiinhUthXXX7zz9yYNgFLAiBcfx3JUCbEe0Gvypr9D9fEYVKw ze6hpvFcOCrcfiCtG2jNJns8S4ZAwlmYTLm9G0FBNsqzasp2V1gWnoWS0zJ7P9+u 35hi3ugWNne2nO9UPHf6euPFGDLymxwWrOwPRHvMYiujEk798DO73RaD6cUAAEb5 qTLNxpZPtOOtSbEA/29JIvpo4MWM1tRWQl0Va4bioCI2HKLVsADza4OKf/zctgz8 om8m43slvGPERgUfCsqtxBLb0ByZGHJJrgORpGV7cWTQwRG6Ub2/gtNSYDTEVVDE kpRMt1OCIQyZ2CLLUAAYC6o7UuAg1g== =HnhO -----END PGP SIGNATURE----- --nextPart2982663.BddDVKsqQX--