From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 53A8C385801A; Mon, 8 Jan 2024 10:49:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53A8C385801A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704710958; bh=0iZZ9fdgQEcK8d0jgZiAB1hBFp3t7stR1WAUdeoWDe8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q1BCabSPWW/sDhCOTOb24doGMjT5Sv9pBsBtEMakBDq0QsejH7a1OR2pqCgaoOa3d R4Lt94buFtYRToqEDuAAxZvwu4ACvTRDqP985WJ8DiYC2RGJDmiTONd0fFFlcC0yaj m8gJx1D4q3z9WAGb3yDDDOmsyA9rm9xtqgZMhpBc= From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113257] -march=native or -mcpu=native are ineffective, but -march=native -mcpu=native works on arm64 M2 Ultra Date: Mon, 08 Jan 2024 10:49:10 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha 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: 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=3D113257 --- Comment #2 from Richard Earnshaw --- For -mcpu=3Dnative, the manual says: Additionally on native AArch64 GNU/Linux systems the value @samp{native} tunes performance to the host system. This option has no eff= ect if the compiler is unable to recognize the processor of the host system. With similar working for -march=3Dnative Since nobody has contributed patches to recognize the Apple Silicon cores, I suspect that is the source of the problem.=