From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 07679385EC57; Fri, 31 May 2024 14:17:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07679385EC57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717165077; bh=RUiE3R1sVan/d051eYwgDDAUMBdpse9kxMneZNtbytw=; h=From:To:Subject:Date:From; b=DfkGLJH7K6ynimAXcK+it+gmaiYKOeUpwyjdB1pL2QvrFCKOr4jEFZ82KPmU/d3ke IINxoIrwL4HbpxsdHDBROwZamCVGhuRQ1n7oaxHKfs6Oor/Pe7gcdOxL/P/i/IvkCn eIO/XDZB8dmPItQOOMVNSEpN775njk2/qevBMty0= From: "mkretz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115308] New: std::experimental::simd is not convertible to NEON intrinsic type with Clang Date: Fri, 31 May 2024 14:17:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mkretz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mkretz 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 cf_gcctarget 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115308 Bug ID: 115308 Summary: std::experimental::simd is not convertible to NEON intrinsic type with Clang Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: mkretz at gcc dot gnu.org Reporter: mkretz at gcc dot gnu.org Target Milestone: --- Target: arm-*-*, aarch64-*-* std::experimental::parallelism_v2::__int_for_sizeof<1>() returns 'char' ins= tead of 'signed char' if __clang__ is defined. With -fno-signed-char that's an observable bug. https://github.com/VcDevel/std-simd/commit/2f99e2813fc751d2493ad79bc1aec3ce= 64c7c49e is the commit that introduced it (before the merge to libstdc++). "Use char= for 1 byte and long long for 8 bytes. This is necessary to match the return vector type of vector compares." I'm taking a guess here that this is due to GCC applying -flax-vector-conversions on vector compare results and Clang probably doesn= 't do it. But that still doesn't really justify returning 'char' unconditional= ly for trait that is supposed to return a signed integer type. The mask type issue must be solved differently, so that __int_for_sizeof can return the right type again. All releases of GCC are affected.=