From nobody Mon May 20 08:13:17 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 4VjVgd2tphz5Jg4j; Mon, 20 May 2024 08:13:17 +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 4VjVgd2Ntsz4jgF; Mon, 20 May 2024 08:13:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716192797; 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=z5uf+ODNLclOPwL8slFxazUWBc36ENbCLlDX6NrO0+Y=; b=dTcLETc+WRGQSZklEFysC2epb2oCgCS41RrdBkHZXh6fVx5Nx+L92In1yySfA4RJxYhqNb xiMqum0d0c4ZhapAvprgXnx9qc3Ul7dKe10oqko5CRROCl9c0u8cZH5dWbpmAMpDGdIseG +wzSz5Y51wua6gVyWnGVRbudwq/0vvhSQCmCqMMkBdivHBj79S+IEg4XRqg8FK1jWGQllI Guqv/6et5CY82ig2p91sBp3i8VvLfHdvsp/lYs3oWzHhKrg02pqJbugH2BWstIm3ZwaO6/ sJlEd6aaiRtf6jJq5prsb7AUyOmdzwAPV/GfUog/u2N+cSaGavtY/CNHYThX6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716192797; a=rsa-sha256; cv=none; b=IvgC5ZQli819Q1NGX2EkLH4LexRkSUQ8fPTTNaCW11NoqPqgVejKztFDk6zJE9YDwab60h OMfQEi4s1y8/fMwDJd6dotW9bQWzfSYABitD9PL9moJkcine3bUnS42vNmw74sXlkOdDtl YpxZCh+AOcftsMUNrabNWhA2yOiJHViRH7ZdPK3jrmb/ayWNTiFWTOwyFUPf6pItknZLSV fJzUWp9XapD1sF83FomLx7LVB5m8qrErkayIeNU/fHzzMDSQfdjv+aWI3YfIhMfiOaKH4E etmx9EPFDA6vSsTveZZ6Q2bUyJ4c2UF9ezHL1bg4OGu5P2yvBbVtFYdG4P5hhQ== 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=1716192797; 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=z5uf+ODNLclOPwL8slFxazUWBc36ENbCLlDX6NrO0+Y=; b=dhyHz7CRZntYa6ZVx877dF6wi33suukzjIlTmb55do26EwbK943Wz3z95kyhnX7lnnQEIJ ZNjaDwFXeq4OUVgNFJaW0afy3/hnAgGxOQAeVewRsapT1bU6zoiN9huFqCxQRLVJMelWgh VwI80LR/iDbh1Fe3caOuHt69fAxovggBtMfddOiu7c19EJ2YAyAlHWivJ1MwE8zg89PD7V 3ARTt1ftSSZVp+kYUKdUVubtgukzR4ckdLUVMZDoi3rLFmZYhA7LeFdq7jacOgAJL7gZq5 qagH8YXUbD6VmotSkibK7NfMM+64fxcB7yhz9UH5iVwj3hFo1DlnC+8TTkqVGQ== 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 4VjVgd1gmgzWwv; Mon, 20 May 2024 08:13:17 +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 44K8DHCX004414; Mon, 20 May 2024 08:13:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44K8DHal004411; Mon, 20 May 2024 08:13:17 GMT (envelope-from git) Date: Mon, 20 May 2024 08:13:17 GMT Message-Id: <202405200813.44K8DHal004411@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: 14efb9bb7104 - stable/14 - Merge commit 87f3407856e6 from llvm-project (by Phoebe Wang): 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/14 X-Git-Reftype: branch X-Git-Commit: 14efb9bb710486a6fba349ec1b4b1b94a9a5a089 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=14efb9bb710486a6fba349ec1b4b1b94a9a5a089 commit 14efb9bb710486a6fba349ec1b4b1b94a9a5a089 Author: Dimitry Andric AuthorDate: 2024-05-16 18:21:45 +0000 Commit: Dimitry Andric CommitDate: 2024-05-20 08:12:56 +0000 Merge commit 87f3407856e6 from llvm-project (by Phoebe Wang): [X86][Driver] Do not add `-evex512` for `-march=native` when the target doesn't support AVX512 (#91694) This prevents problems with ports that fail to build with CPUTYPE=native, if the native CPU supports AVX512F, resulting in errors like: /wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler32_template.h:197:21: error: always_inline function '_mm512_set1_epi8' requires target feature 'evex512', but would be inlined into function 'adler32_x86_avx512_vl512_vnni' that is compiled without support for 'evex512' 197 | const vec_t ones = VSET1_8(1); | ^ /wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler32_template.h:116:23: note: expanded from macro 'VSET1_8' 116 | # define VSET1_8(a) _mm512_set1_epi8(a) | ^ /wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler32_template.h:197:21: error: AVX vector return of type '__m512i' (vector of 8 'long long' values) without 'evex512' enabled changes the ABI /wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler32_template.h:116:23: note: expanded from macro 'VSET1_8' 116 | # define VSET1_8(a) _mm512_set1_epi8(a) | ^ Ports known to be affected are: archivers/libdeflate, devel/highway, www/node20, and lang/rust. (For rust itself there is also a similar issue reported at https://github.com/rust-lang/rust/pull/121088). PR: 276104 Reported by: netchild MFC after: 3 days (cherry picked from commit fcfb2d6393712dee3f1f8f0c3840d14817dea416) --- contrib/llvm-project/llvm/lib/TargetParser/Host.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp b/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp index 1adef15771fa..848b531dd8dd 100644 --- a/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp +++ b/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp @@ -1774,7 +1774,8 @@ bool sys::getHostCPUFeatures(StringMap &Features) { Features["rtm"] = HasLeaf7 && ((EBX >> 11) & 1); // AVX512 is only supported if the OS supports the context save for it. Features["avx512f"] = HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save; - Features["evex512"] = Features["avx512f"]; + if (Features["avx512f"]) + Features["evex512"] = true; Features["avx512dq"] = HasLeaf7 && ((EBX >> 17) & 1) && HasAVX512Save; Features["rdseed"] = HasLeaf7 && ((EBX >> 18) & 1); Features["adx"] = HasLeaf7 && ((EBX >> 19) & 1);