From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3EA4384AB53; Mon, 19 Aug 2024 14:50:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3EA4384AB53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1724079033; bh=KUFU+k/8hpvQeyh2/EQsd5OwZKA2KFE39eNfxcfyzzk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h74IEfjK2rr3ADxqo0Lq/ZoOav4bxsPGYD0RfargEWvs9yxmpnY/9apW8NM6FK6it bLlO/nfLQdRHNPKSZ7drsRH57Aw9cN5otQtgdOk8HLKOrqTGvh86e15UZmZU3vreDM YyQX5nk+k/RcIYLk2D1GFjoEYRZC41yGRltfyJoQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112108] [aarch64] Some intrinsics are not correctly enabled when using 'target' attributes Date: Mon, 19 Aug 2024 14:50:31 +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: 11.0 X-Bugzilla-Keywords: rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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=3D112108 --- Comment #2 from GCC Commits --- The master branch has been updated by Andrew Carlotti : https://gcc.gnu.org/g:32afbb604b4958e78428006b10b3ca5e9ccd49f5 commit r15-3023-g32afbb604b4958e78428006b10b3ca5e9ccd49f5 Author: Andrew Carlotti Date: Thu Oct 26 15:43:44 2023 +0100 aarch64: Fix tme intrinsic availability The availability of tme intrinsics was previously gated at both initialisation time (using global target options) and usage time (accounting for function-specific target options). This patch removes the check at initialisation time, and also moves the intrinsics out of the header file to allow for better error messages (matching the existing error messages for SVE intrinsics). gcc/ChangeLog: PR target/112108 * config/aarch64/aarch64-builtins.cc (aarch64_init_tme_builtins= ): Define intrinsic names directly. (aarch64_general_init_builtins): Move tme initialisation... (handle_arm_acle_h): ...to here, and remove feature check. (aarch64_general_check_builtin_call): Check tme intrinsics. * config/aarch64/arm_acle.h (__tstart, __tcommit, __tcancel) (__ttest): Remove. (_TMFAILURE_*): Define unconditionally. gcc/testsuite/ChangeLog: PR target/112108 * gcc.target/aarch64/acle/tme_guard-1.c: New test. * gcc.target/aarch64/acle/tme_guard-2.c: New test. * gcc.target/aarch64/acle/tme_guard-3.c: New test. * gcc.target/aarch64/acle/tme_guard-4.c: New test.=