From nobody Mon Oct 21 09:37:09 2024 X-Original-To: dev-commits-ports-main@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 4XX9FL60SZz5YldH; Mon, 21 Oct 2024 09:37:10 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XX9FL0ZbJz4nQ7; Mon, 21 Oct 2024 09:37:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729503430; 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=lts4YnE58WB1E5stg/tXUGSJYU0v0q+/0SchP4YwMaM=; b=igN9FcrKYxElSmjfl73UHDVx7Grh6ez+24MHWfYArcVw60K3sXHQJwcgEKP7f8GRnPS8pu hX0lrdLTcH58DM+t4xkPiNOoUaAkpBNQzY5omV/gKHN1pN7W6Hd0vjJp2nC/f5HZz2l+H3 T+UGlJR4S8Mx+vVsSJuaIHIDETgKpOSW+FMVOaLZrXDhke4pv9c4zjinvNNgSds9ar7IaC ckIQS6tXHeKITE/7fDXt4WBGBq3cpyaA4X/bLPgraVsNZQiFjMdipWjdyQzWCHGHR4HF4t /rg2tka+kKz5Kfsf4MRo00K6f+Ed90TyKluCl2iP/Z0w8UrutJslORfums0T/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729503430; 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=lts4YnE58WB1E5stg/tXUGSJYU0v0q+/0SchP4YwMaM=; b=GBt7vL+TBhKWxYgIGiXz9EhrUX/N9wyRKu79Zdg0aq4xTxiNNYz7ZtL+DP892Sl/K76EBH rwS3DHJVZHMh35mzde+DP0L/+ggfnYchpUMmZZukYjhXtrQWPwUD6PhH81hyhlTGypTLsH YLV9WGKuuceON3/SHPdsu1Jr6S71jXrpHnzoXvoqDhjm2fU2tPAfKa59SW0K1B1Z6LO9iN ReP8lYkyeELEBoxOWsN2O3lHcQccVb00aWcgkMgutX3MA80Q1FL5i0qs1HsZXGhLeD4ERv 6k6USr6uWqTgI6j5aLSTxTV58sz1YNGn+OxaPOEIFoma+L1stwDGXgQC3gyGCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729503430; a=rsa-sha256; cv=none; b=F5XoNON0bCckjsZxI3CjkfC0fuRzvk0nalEoebZS+9uw9xb/sZsH/cdutpQHbC/i5b/hzh FLd5tkewUiY2Ew6PPmZkqPWH7EC7dt9Mh3AIYVdU7as+Guwm09jnNkUSd4FY3nDymGE4lv lJ+y0xHV24U/iXiHn7J55A/9LBgj2vdhSiJ29MP5zCr6C1T60ekvZX6qDrUiy0O+s2Mle+ 5aAh2FsPEocgX424C/E2gjoDZqb1eCykvD4JYYfeC/8KZqOMfYux4UZXweD1GP3CEuary6 fO5VT/cEDNunUyGg0atnd2LgIQSNiIufaB6OgpSjOGqKVwWVUZRG3GR2Mj1QWg== 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 4XX9FL0BBxzPZ6; Mon, 21 Oct 2024 09:37:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49L9b9F1032719; Mon, 21 Oct 2024 09:37:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49L9b9wZ032713; Mon, 21 Oct 2024 09:37:09 GMT (envelope-from git) Date: Mon, 21 Oct 2024 09:37:09 GMT Message-Id: <202410210937.49L9b9wZ032713@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 064036198c23 - main - devel/sse2neon: SSE to NEON compatibility shim List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 064036198c23d84372f51266cba47fc8d0a8b897 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=064036198c23d84372f51266cba47fc8d0a8b897 commit 064036198c23d84372f51266cba47fc8d0a8b897 Author: Robert Clausecker AuthorDate: 2024-10-15 14:21:16 +0000 Commit: Robert Clausecker CommitDate: 2024-10-21 09:36:00 +0000 devel/sse2neon: SSE to NEON compatibility shim sse2neon is a translator of Intel SSE (Streaming SIMD Extensions) intrinsics to Arm NEON, shortening the time needed to get an Arm working program that then can be used to extract profiles and to identify hot paths in the code. The header file sse2neon.h contains several of the functions provided by Intel intrinsic headers such as , only implemented with NEON-based counterparts to produce the exact semantics of the intrinsics. WWW: https://github.com/DLTcollab/sse2neon --- devel/Makefile | 1 + devel/sse2neon/Makefile | 30 ++++++++++++++++++++++++++++++ devel/sse2neon/distinfo | 3 +++ devel/sse2neon/files/patch-Makefile | 13 +++++++++++++ devel/sse2neon/files/patch-sse2neon.h | 11 +++++++++++ devel/sse2neon/pkg-descr | 7 +++++++ 6 files changed, 65 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 8a13bd400ae0..8608317a2d25 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -8100,6 +8100,7 @@ SUBDIR += spread-sheet-widget SUBDIR += spyder SUBDIR += srecord + SUBDIR += sse2neon SUBDIR += st SUBDIR += stack SUBDIR += staf diff --git a/devel/sse2neon/Makefile b/devel/sse2neon/Makefile new file mode 100644 index 000000000000..25b87b2668a5 --- /dev/null +++ b/devel/sse2neon/Makefile @@ -0,0 +1,30 @@ +PORTNAME= sse2neon +DISTVERSIONPREFIX= v +DISTVERSION= 1.7.0 +CATEGORIES= devel + +MAINTAINER= fuz@FreeBSD.org +COMMENT= SSE to NEON compatibility shim +WWW= https://github.com/DLTcollab/sse2neon + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 +ONLY_FOR_ARCHS_REASON= requires x86 SSE or ARM NEON to work + +BROKEN_i386= wants to use amd64-only SSE intrinsics + +TEST_TARGET= check +NO_ARCH= yes +NO_BUILD= yes +PLIST_FILES= include/sse2neon.h + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= DLTcollab + +do-install: + ${INSTALL_DATA} ${WRKSRC}/sse2neon.h ${STAGEDIR}${PREFIX}/include/ + +.include diff --git a/devel/sse2neon/distinfo b/devel/sse2neon/distinfo new file mode 100644 index 000000000000..56f52515c359 --- /dev/null +++ b/devel/sse2neon/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1729001713 +SHA256 (DLTcollab-sse2neon-v1.7.0_GH0.tar.gz) = cee6d54922dbc9d4fa57749e3e4b46161b7f435a22e592db9da008051806812a +SIZE (DLTcollab-sse2neon-v1.7.0_GH0.tar.gz) = 134103 diff --git a/devel/sse2neon/files/patch-Makefile b/devel/sse2neon/files/patch-Makefile new file mode 100644 index 000000000000..4530299b8fc5 --- /dev/null +++ b/devel/sse2neon/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2024-10-15 14:24:20 UTC ++++ Makefile +@@ -40,8 +40,8 @@ ifdef ARCH_CFLAGS_IS_SET + ifdef ARCH_CFLAGS_IS_SET + ifeq ($(processor),$(filter $(processor),aarch64 arm64)) + override ARCH_CFLAGS := -march=armv8-a+fp+simd +- else ifeq ($(processor),$(filter $(processor),i386 x86_64)) +- override ARCH_CFLAGS := -maes -mpclmul -mssse3 -msse4.2 ++ else ifeq ($(processor),$(filter $(processor),amd64 i386 x86_64)) ++ override ARCH_CFLAGS := -maes -mpclmul -msse -msse2 -msse3 -mssse3 -msse4.2 + else ifeq ($(processor),$(filter $(processor),arm armv7 armv7l)) + override ARCH_CFLAGS := -mfpu=neon + else diff --git a/devel/sse2neon/files/patch-sse2neon.h b/devel/sse2neon/files/patch-sse2neon.h new file mode 100644 index 000000000000..ee025ebb7c55 --- /dev/null +++ b/devel/sse2neon/files/patch-sse2neon.h @@ -0,0 +1,11 @@ +--- sse2neon.h.orig 2024-10-15 17:08:16 UTC ++++ sse2neon.h +@@ -104,7 +104,7 @@ + #pragma message("Macro name collisions may happen with unsupported compilers.") + #endif + +-#if defined(__GNUC__) && __GNUC__ < 10 ++#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 10 + #warning "GCC versions earlier than 10 are not supported." + #endif + diff --git a/devel/sse2neon/pkg-descr b/devel/sse2neon/pkg-descr new file mode 100644 index 000000000000..3330a74b0951 --- /dev/null +++ b/devel/sse2neon/pkg-descr @@ -0,0 +1,7 @@ +sse2neon is a translator of Intel SSE (Streaming SIMD Extensions) +intrinsics to Arm NEON, shortening the time needed to get an Arm working +program that then can be used to extract profiles and to identify hot +paths in the code. The header file sse2neon.h contains several of the +functions provided by Intel intrinsic headers such as , +only implemented with NEON-based counterparts to produce the exact +semantics of the intrinsics.