From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A6893858D28; Wed, 15 Dec 2021 08:20:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A6893858D28 From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103727] New: [aarch64] Too strict built-in decl check Date: Wed, 15 Dec 2021 08:20:20 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw 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, 15 Dec 2021 08:20:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103727 Bug ID: 103727 Summary: [aarch64] Too strict built-in decl check Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org Target Milestone: --- As PR102347 discussed and tested, aarch64 also does too strict built-in function decl check. Here is one test case copied from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102347#c3 Testcase: int64x2_t v1 =3D {100, 200}; int32x4_t v2 =3D {11, 22, 33, 44}; #pragma GCC target ("+simd") int main() { uint64x2_t vres =3D (uint64x2_t) __builtin_aarch64_usubw2v4si (v1, v2); printf("vres: %lld %lld\n", vres[0], vres[1]); return 0; } -march=3Darmv8-a+nosimd // PASS -march=3Darmv8-a+nosimd -flto // FAIL Andrew had more insightful comments (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102347#c5) "Right for aarch64, most people won't use +simd/+nosimd combo (though it mi= ght show up inside the kernel) but they might use +sve/+nosve ... So the aarch64 bug should be fixed"=