From nobody Sun Apr 21 19:06:40 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VMyXx1Jc3z5HXHC; Sun, 21 Apr 2024 19:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMyXw4dBmz4fjn; Sun, 21 Apr 2024 19:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713726400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x1X8bh49jbO4cLr+DkWmdb6tRkKs2KOJ/P24YoIjAjQ=; b=yazC/qoLcECydbQo0xH3S5xHm6TiS5XfxfwCrTfAj5OU6ez0mbiEcBr+l+kOhJDlfus7Yx o8sxx0Ao+vhOVtk/Mu0tpkhAEm3EwTUq8j8UGU+y7myHQjkYMuvzQZ2JARyCwkmMM31cHu 1CfrZKCkGHDYTYO5Tuh/N14xJUdJP/oOthGlTe5/lnh020Mn3kSw/OyuWLnIFmwHA3kcA8 e9pUPihlHwOOF84uVCacANxnDFWSt+/Gqf84z05/jzohAqxGAPt4tEUz6hqiowd/xGvMtJ CSeZ+p0ENDa+peUdBC9wxSRz2tItSMEfiLA2Oy1BElzK9NY/HH9yhycefbPnjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713726400; a=rsa-sha256; cv=none; b=ifF3cwRSuoy4NKmvRhNfmlINZiVBMOpcjE7zPCxbiS8rEiZrnAV/+QTLMQzc9vrtXry59N +chVPBey6r5jDXo1OmVieIlh91LyQbNq+CU0Z/1LF05pqVTb1rsAPLuonTXG+vHzfdKRMl B8MdBgHyPZeqGuSG71cqm7ET27PhkHxwad5O5q4h43Umww3ag0HM5rlz/hW79GyNAhbRpl lSupstpQNAaY0/zpz1nGXzXA0jHEOnyeDbYaUcj+Exq8s7bovAQTa8fEJL4e8gBZfASHVS hlOfx03lEYES7e+OY397LkZCsdiA/759Y6bPCxZAoVfN5txY6E5Mi6vWYw1X4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713726400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x1X8bh49jbO4cLr+DkWmdb6tRkKs2KOJ/P24YoIjAjQ=; b=vvqNJVZBb5PzUQLM6AAnrp2PW0J+gBpw0KeqiapvuOX9grYncJKCMQjWS7dzXTe+1B1rr7 QuvmDkpB/2/G1XAJgcPkhOOeIjR4GFaf67dij8pG6IG8uQBqm7xK1NfId8teiZBKu9uJ3m D+2FYFUeVsa/ZbXLPwLiKrVEP9Zs2yhSM6kum3EeA6Fxvdjfc3iFQc5heCj7OUaMxGBSiz m5Eft4E6R4lwXg/XsdpSSioHRI7VwabIs7sbqJdt+pdZnAUUYvI3ITOe1wFLMkAqSyNHUp rYIqFos48cZnBQEM3K/vyKBuk+456FtE61wQsGWROTRN93bzwAkABoDa5bVJpg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VMyXw3xPtzHR3; Sun, 21 Apr 2024 19:06:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43LJ6eLD029289; Sun, 21 Apr 2024 19:06:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43LJ6ePK029286; Sun, 21 Apr 2024 19:06:40 GMT (envelope-from git) Date: Sun, 21 Apr 2024 19:06:40 GMT Message-Id: <202404211906.43LJ6ePK029286@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: ce159ac62d6c - stable/13 - bsd.cpu.mk: add support for x86-64-v[234] levels as CPUTYPE List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ce159ac62d6c8761fdbe43bfef601f0a85209a29 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ce159ac62d6c8761fdbe43bfef601f0a85209a29 commit ce159ac62d6c8761fdbe43bfef601f0a85209a29 Author: Val Packett AuthorDate: 2021-08-06 13:33:37 +0000 Commit: Dimitry Andric CommitDate: 2024-04-21 19:02:08 +0000 bsd.cpu.mk: add support for x86-64-v[234] levels as CPUTYPE These are supported in LLVM 12 and GCC 11: https://github.com/llvm/llvm-project/commit/012dd42e027e https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=324bec558e95584e8c1997575ae9d75978af59f1 Differential Revision: https://reviews.freebsd.org/D29150 (cherry picked from commit 362fef2f4a9954c0f5eeecbe512cc5abbdc44263) --- share/mk/bsd.cpu.mk | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 08b98e824492..67d817e11101 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -193,16 +193,19 @@ MACHINE_CPU = k5 i586 ${CPUTYPE} == "cooperlake" || ${CPUTYPE} == "cascadelake" || \ ${CPUTYPE} == "icelake-server" || ${CPUTYPE} == "icelake-client" || \ ${CPUTYPE} == "cannonlake" || ${CPUTYPE} == "knm" || \ - ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" + ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" || \ + ${CPUTYPE} == "x86-64-v4" MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "skylake" || \ - ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" + ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" || \ + ${CPUTYPE} == "x86-64-v3" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "ivybridge" || ${CPUTYPE} == "sandybridge" MACHINE_CPU = avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "tremont" || ${CPUTYPE} == "goldmont-plus" || \ ${CPUTYPE} == "goldmont" || ${CPUTYPE} == "westmere" || \ - ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" + ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" || \ + ${CPUTYPE} == "x86-64-v2" MACHINE_CPU = sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "penryn" MACHINE_CPU = sse41 ssse3 sse3 sse2 sse i686 mmx i586 @@ -211,7 +214,7 @@ MACHINE_CPU = ssse3 sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "yonah" || ${CPUTYPE} == "prescott" MACHINE_CPU = sse3 sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || \ - ${CPUTYPE} == "pentium-m" + ${CPUTYPE} == "pentium-m" || ${CPUTYPE} == "x86-64" MACHINE_CPU = sse2 sse i686 mmx i586 . elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m" MACHINE_CPU = sse i686 mmx i586 @@ -261,16 +264,19 @@ MACHINE_CPU = k8 3dnow ${CPUTYPE} == "cooperlake" || ${CPUTYPE} == "cascadelake" || \ ${CPUTYPE} == "icelake-server" || ${CPUTYPE} == "icelake-client" || \ ${CPUTYPE} == "cannonlake" || ${CPUTYPE} == "knm" || \ - ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" + ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" || \ + ${CPUTYPE} == "x86-64-v4" MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse3 . elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "skylake" || \ - ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" + ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" || \ + ${CPUTYPE} == "x86-64-v3" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3 . elif ${CPUTYPE} == "ivybridge" || ${CPUTYPE} == "sandybridge" MACHINE_CPU = avx sse42 sse41 ssse3 sse3 . elif ${CPUTYPE} == "tremont" || ${CPUTYPE} == "goldmont-plus" || \ ${CPUTYPE} == "goldmont" || ${CPUTYPE} == "westmere" || \ - ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" + ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" || \ + ${CPUTYPE} == "x86-64-v2" MACHINE_CPU = sse42 sse41 ssse3 sse3 . elif ${CPUTYPE} == "penryn" MACHINE_CPU = sse41 ssse3 sse3