From nobody Sun Apr 21 19:06:41 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 4VMyXy2mHLz5HX81; Sun, 21 Apr 2024 19:06:42 +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 4VMyXx5skFz4fjx; Sun, 21 Apr 2024 19:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713726401; 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=dFMsgnLa3kE8YUIl1j/paLXhysrO+Esf9jo6v3Ye4Bo=; b=eU1sPSd4YmxngHQ1Mjj65cVmUECraWUvC63xlF57Rnw4H4cXTg2vfixuu6dWft5RsU+mAF pJQD2ztM/dXXB/EdtOAjk+i9arwnAP+iwdXAbEcRk0eEENvorj7zQ1ABivjYJz7Wnc7pss yqfoGqDc3GOI5W8rnc6S12KI8KzZ0wfPr/zGj5dr5kUA+UeBG7DYj3l0bT349BvctdI7ie VB8c2MVQeUpje/FyKv6wnHs4NXu1zA1+doiKeXmfpmf3aCzKFh7DnBqrYPS7hY7Jy/iWuv /vaKo9kPeKg6qBGYqUJ/WP7VM3uAWGH0xZz5ISqSqXhe2suQKnoL18pyIel91g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713726401; a=rsa-sha256; cv=none; b=KjceTnqbmodH8ScwkX25zD6ResTu1C3DViSOda1iiBWcNEemoq0tmNGX/nYnIutRzBOGIx cXARj6tNWjqKnBl5SpresqpqUK7bUc9DXVDM4rGAe5Pt6YyGCA1h39jXQij/RdMRsbG4eB FtZSkNHcJbIrcwLnFMtblONM1mOZe3yAKBtBNvJf2idqc/KWtIYhcLNEF/zaPELxJfosCp wyFacCnye9tC1XzgXnIyGQSkFD9sblUVFv22A3GcO1pXMcv1Q0qmXxos6lRf1ZUptoE5d5 +zInRvJmp8l63/kDUFNMYYweacOqaz5lbwg5bjgUDDyyLg5zmqgrIjl9XuGC2g== 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=1713726401; 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=dFMsgnLa3kE8YUIl1j/paLXhysrO+Esf9jo6v3Ye4Bo=; b=VaSi3QIx79nYhdeyM56tl7kD8fIH4DnEY5NODkeVd4pEEZ4SMYoHyfzVtjE4F8N/FxnfNX 4TU99RqfHiTmpQJd3gXETLXCj/N00g3UKaDlJfoy+Fiaa8gzlqgLGLTG1efQEtKNCojY1C PpQK23vMWeUj/hnmYx9AgMHOFBTAZeReutDhQpu+D/GprtAtpaWaeufd0m+keBFDh40aO2 /acPbkEo0bodPS87PE/eXPNDVO+NMBQlaaQwjMib/xN8SB36bs3K06+VKzPP2da7ncI701 T8XK1FwepxD9pRXzVfYgZut0WHYxfVX1zGlMiKVAh+mCVdwuJjNDb0IdaToeew== 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 4VMyXx5Dh3zHBk; Sun, 21 Apr 2024 19:06:41 +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 43LJ6fhu029339; Sun, 21 Apr 2024 19:06:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43LJ6fwH029336; Sun, 21 Apr 2024 19:06:41 GMT (envelope-from git) Date: Sun, 21 Apr 2024 19:06:41 GMT Message-Id: <202404211906.43LJ6fwH029336@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: a45dd984457f - stable/13 - share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86 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: a45dd984457f9f1273b1b9cd2867be39cdf774b7 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a45dd984457f9f1273b1b9cd2867be39cdf774b7 commit a45dd984457f9f1273b1b9cd2867be39cdf774b7 Author: Daniel Engberg AuthorDate: 2023-08-20 21:54:19 +0000 Commit: Dimitry Andric CommitDate: 2024-04-21 19:02:09 +0000 share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86 Main difference between older Zen variants is that this supports AVX-512 Reviewed by: imp (previous version), emaste Approved by: emaste Differential Revision: https://reviews.freebsd.org/D41331 (cherry picked from commit ed3fb74e44b9ef37837cebc5acfd7e68867206ca) --- share/mk/bsd.cpu.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 67d817e11101..c3c19e2befa4 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -159,7 +159,9 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} ########## i386 . if ${MACHINE_CPUARCH} == "i386" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 . elif ${CPUTYPE} == "bdver4" @@ -240,7 +242,9 @@ MACHINE_CPU = mmx MACHINE_CPU += i486 ########## amd64 . elif ${MACHINE_CPUARCH} == "amd64" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 . elif ${CPUTYPE} == "bdver4"