From nobody Fri Jan 12 23:35:04 2024 X-Original-To: toolchain@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 4TBdDm49Dnz56dml for ; Fri, 12 Jan 2024 23:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@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 4TBdDm2Bsqz4x8f for ; Fri, 12 Jan 2024 23:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705102504; 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: in-reply-to:in-reply-to:references:references; bh=8ZaPyHoXHdxVS+T5zbRyRUVxh1g5mevEkg2g7BNB6+o=; b=yjdlK+T2GR+zIengr7mJ61xlq1xs3l6lV2w5uZd3T2AO/P9odPOG6+XVjMXfqmEvhsfjEH Oyq4Cxw/fy9rxAC3FcrZI23aHGHvdSM4MdHDy4I7UBOgJKvm2duWdUqJb6hEmw8pcqG+0y hakU25mGXgU4wJydc3V/iGUjTMD8RxIBZPlEVr2lnqm3jl3jPAM1HQpECSkMaYK00LiOYe joR84/k7rLBj5gAymklO2H7qi4r4PmXSiTqopIJXr3VRVLbPt/kK96ZbCtqgJloHGgClRz 6rNWgwNTrGfx3UI1vOf31r2ppStlvjYmTh5FKo2iLJ5XLR6bX0iBaOo1B2hJTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705102504; a=rsa-sha256; cv=none; b=T0c9Ht73w/6UqYSjBBQpCviHOXspNSN5N3HPWznMDOta50HD572dec/aMD+wbq1uEUjeJs EgFJ2n7oa4S4tRD981oHQplRdHKjFQ+nPveAAGTEH8xSaojUpjo4iy1vNbiyLMJqRkDI1i JV/kpDuVWu8nrV0rpaCOJrggoGB5ko+6tiGblf0D3Hp1KK94zeS00fcfNHrBkmzu2J8CLA 6AXl+V33D5m3wZW/j4XMGKta7chlIX3XsGNgPFTKFLE/yVfNYP8Uu1vRSWeRXuEv2jQywr g3J6Scja7zS6TRhDiiGEbGr6Rf80Cqi9uVglF8wi+VbDxCGHyRSRTmikSzIJDw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4TBdDm1HtVz1Lv4 for ; Fri, 12 Jan 2024 23:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40CNZ4GX034658 for ; Fri, 12 Jan 2024 23:35:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40CNZ4L3034656 for toolchain@FreeBSD.org; Fri, 12 Jan 2024 23:35:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 276282] vectorized code fails on powerpc64le: typedef __vector uint8_t __m128i; in the port misc/randomx Date: Fri, 12 Jan 2024 23:35:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276282 Piotr Kubaj changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkubaj@FreeBSD.org --- Comment #2 from Piotr Kubaj --- The following patch seems to work:\--- src/intrin_portable.h.orig 2024-01-= 12 23:32:27 UTC +++ src/intrin_portable.h @@ -186,11 +186,11 @@ FORCE_INLINE uint32_t rx_get_rounding_mode() { #undef pixel #undef bool -typedef __vector uint8_t __m128i; -typedef __vector uint32_t __m128l; -typedef __vector int __m128li; -typedef __vector uint64_t __m128ll; -typedef __vector double __m128d; +typedef vector unsigned char __m128i; +typedef vector unsigned int __m128l; +typedef vector int __m128li; +typedef vector unsigned long long __m128ll; +typedef vector double __m128d; typedef __m128i rx_vec_i128; typedef __m128d rx_vec_f128; @@ -209,7 +209,7 @@ typedef union{ #define rx_prefetch_t0(x) /* Splat 64-bit long long to 2 64-bit long longs */ -FORCE_INLINE __m128i vec_splat2sd (int64_t scalar) +FORCE_INLINE __m128i vec_splat2sd (long long scalar) { return (__m128i) vec_splats (scalar); } FORCE_INLINE rx_vec_f128 rx_load_vec_f128(const double* pd) { --=20 You are receiving this mail because: You are the assignee for the bug.=