From nobody Sun Sep 25 21:38:10 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 4MbK6t1Y4yz4d1yk for ; Sun, 25 Sep 2022 21:40:06 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mail.inka.de (mail.inka.de [IPv6:2a04:c9c7:0:1073:217:a4ff:fe3b:e77c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MbK6s3Bn3z3jZW; Sun, 25 Sep 2022 21:40:05 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mips.inka.de (naddy@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1ocZM4-003Vmc-70; Sun, 25 Sep 2022 23:40:04 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.16.1/8.16.1) with ESMTP id 28PLcA9X032553; Sun, 25 Sep 2022 23:38:10 +0200 (CEST) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.16.1/8.16.1/Submit) id 28PLcA0A032552; Sun, 25 Sep 2022 23:38:10 +0200 (CEST) (envelope-from naddy) Date: Sun, 25 Sep 2022 23:38:10 +0200 From: Christian Weisgerber To: Dimitry Andric Cc: Jan Beich , Christian Weisgerber , freebsd-current@freebsd.org Subject: Re: Did clang 14 lose some intrinsics support? Message-ID: References: <1A903FD8-D904-4B91-ABC4-2F704F0E2CF4@FreeBSD.org> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1A903FD8-D904-4B91-ABC4-2F704F0E2CF4@FreeBSD.org> X-Rspamd-Queue-Id: 4MbK6s3Bn3z3jZW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of naddy@mips.inka.de has no SPF policy when checking 2a04:c9c7:0:1073:217:a4ff:fe3b:e77c) smtp.mailfrom=naddy@mips.inka.de X-Spamd-Result: default: False [-1.09 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; NEURAL_HAM_LONG(-0.99)[-0.992]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; ASN(0.00)[asn:202113, ipnet:2a04:c9c0::/29, country:DE]; FREEFALL_USER(0.00)[naddy]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[inka.de]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Dimitry Andric: > > See https://github.com/llvm/llvm-project/commit/e5147f82e1cb > > > > - Instead of __builtin_ia32_pabsd128 maybe use _mm_abs_epi32 > > - Instead of __builtin_ia32_pabsd256 maybe use _mm256_abs_epi32 > > I'm wondering why this rather fragile method is chosen? If you want to > know whether SSE is supported, you check for __SSE__, and similarly > __SSE2__, __AVX__ and a bunch of others. That is also portable to gcc. __AVX__, for instance, is not defined unless you compile with -mavx, which also allows the compiler to issue AVX instructions during normal code generation. -- Christian "naddy" Weisgerber naddy@mips.inka.de