From nobody Mon Sep 26 13:54:04 2022 X-Original-To: freebsd-current@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 4Mbkkp3KN9z4WcnN for ; Mon, 26 Sep 2022 13:54:10 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mbkkp2nFWz3t22 for ; Mon, 26 Sep 2022 13:54:10 +0000 (UTC) (envelope-from lev@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664200450; h=from:from:reply-to: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: in-reply-to:in-reply-to:references:references; bh=65xUnMZwteZu6Ofe4v31ldO2yLgz8ydwcy1UUv1GtEQ=; b=xWIJp5mnOwYlncyBmO6YETLdSZrulnjjFwgY8c4DzJ4UXNbyyYuc5Z35M+i+sCNM0EEb9c a32qOVo+HV0Am2DkOKR+QXwB2mJW8ADwx6B5j/FIS00/nGoZCkV/rJZOJ8iwlU8sWHzIS8 rIogyeUmdTq+XyU0tpNqW0IlTvfYyTKsB5LA4OnFiRrL6FzqHMPg/JBvoHHnBGyFWxQAPW a7eTj0dfcFVGesJqfXBYN9EJMoZrgbqq+LSDZcLyisE/NnDu01uL9e5+nuROEsw2NQLT+r G6yhQxHTHNcKrTVDdiqZq10vYJpGw62K184UxznkXUWnzV5zk4DUfEmlWEutbg== Received: from onlyone.not-for.work (onlyone.not-for.work [148.251.9.81]) (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) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Mbkkp19Ndzh84 for ; Mon, 26 Sep 2022 13:54:10 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.2.89] (unknown [37.252.88.96]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 2097AC88B for ; Mon, 26 Sep 2022 16:54:06 +0300 (MSK) Message-ID: <8cd08b95-396a-b8a3-e33a-b0482a7f23e5@FreeBSD.org> Date: Mon, 26 Sep 2022 16:54:04 +0300 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Did clang 14 lose some intrinsics support? Content-Language: en-US To: freebsd-current@freebsd.org References: <1A903FD8-D904-4B91-ABC4-2F704F0E2CF4@FreeBSD.org> <430A830E-3473-4EF4-9605-039F8254999C@FreeBSD.org> From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD In-Reply-To: <430A830E-3473-4EF4-9605-039F8254999C@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664200450; h=from:from:reply-to: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: in-reply-to:in-reply-to:references:references; bh=65xUnMZwteZu6Ofe4v31ldO2yLgz8ydwcy1UUv1GtEQ=; b=d17mwh/SHkD6kdMSxGRWA5MSinZZo0sm2mFokRvif9UTv4biKeMJp3KpBub1VaCvPrT0lg E6Ha16w+X2mTwBqiTN7yke6YQxeBfO5vRHIM9u/y9tisQ+zrHqeOGrI0gUK4LlkU40BfzA 6wAurifSbleZIhky8NAhhGqchaijrDozfB1cGo7q8kqN/jRZtShar+EoaYsFkA1yuLVVpJ wLZNXp6X0wmU4DpJdaytr6NA27mWl+reTQLVOj6LCSTS69Ovgv5tVqfJ0y5lRPEDxCy1yI h5fWiIPFqN+XwoZENmfnCP06vVqRP+neIJCRCGHX/nZIJLXtFWIQg/G9D9Fe9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664200450; a=rsa-sha256; cv=none; b=G4fP0GKjz+9195qYhcDNDObtbLqWzVtolCwIQuLu1igJzEB+Z9H7NeyFPeC9qQzfbi5yqR 9jmx2/lD2sG5gVUYVhsCKQyaWTzM9AJi+5UY+4hAo17H2f6qAnYZOqYNqTUqyDhQO5IHVi v6vC+7UU6WOCZJgA4aTHrF2TXd+NdPsochz+DI/yk7b7l9GdWzu4R3iFJZ6rRqUQbQCmoW g+LkpWX6BGEe+gzmohC4gN8C1YcFIHUVpUUFsncnJDti4WozVUWW3X9aVB2Ad8/ljC6tRt eVVj7DhgYktsPLt7QvxhyxA/T1xyllnF5IDpw8PqnvJeNozwWJ1PEHCzAFgRYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 26.09.2022 13:03, Dimitry Andric wrote: > Sure, but if you are compiling without -mavx, why would you want the AVX > intrinsics? You cannot use AVX intrinsics anyway, if AVX is not enabled. Because autovectorization (generation of SSE or AVX instructions by compiler itself, without intrinsics) can pessimize code. Sometimes it is valuable to know exactly where AVX is used. I don't have examples on hands, but I've seen situations, when autovectorized code was much slower than scalar code. -- // Lev Serebryakov