From nobody Mon Nov 06 01:31:32 2023 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 4SNv2X5ZCGz50Tdw for ; Mon, 6 Nov 2023 01:31:32 +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 4SNv2X30VTz3cnb for ; Mon, 6 Nov 2023 01:31:32 +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=1699234292; 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=w4hWO8KmhF8eZrSEwXBQPpg+vVDag2gnFKr0PyHkrl0=; b=YziHIhVoxW620zQ+JENrHU3YpG6lkux9vbPhIkrGJIXIAq7ps+8DO8zmmqr6NuqMd87xQY ULXYnpz3tMwCwPYoB1dJGnvMp+2zZ/nvHyNz8SzQKvsWAt4JI6jm4eI3RfewKwfvRhQhDM iRO5eKUYyaQi6P4AmK4duxvfVrQFapCGB4RVkEa07haB6gxBNcEEjImS8p0W6j2sH1C42P xXh5VaBB/9/KwI5lg4lm9Lbr5LGVBgLoe+cY369yqDuehyXi+gzkh3meIbEiBneDNUs74D PtjS/Bb826ozPeAigyFeKbsO+Gnmn8lGaAhgdbeR7Qt2vi3d0eNOEBcgqI2XyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699234292; a=rsa-sha256; cv=none; b=ggknD78JFHGJPCT/yikebE6zJpPTz9qCSVNGI2srkll+9v5SGvRxrpeNbY4qUhyU6v7MBj vCGKhc4xG/VExHhOOnZZbmc1HF+ahfT23T/FkcmYw6bJZl3CJJTpDKmTvXp8ACes1BWxnR Gvun3016yyTITE+3PzLWsxUrLYhhebzVmRLJWpFr3r0QX1mdomdp8qajAzxLZ8kkFhwmPO N32hJNcCDPqxY4vOot733DK2yfSBobS5F29ycynlEORFr4FtT+SdYggVs0eNnP24+r8OAE yAbKs5AQcupZ520ahTOH+fr8yZjC8ZNAZjwScmiNye0OXmP5Y45RXCjQZF6Xgg== 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 4SNv2X236rzpCT for ; Mon, 6 Nov 2023 01:31:32 +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 3A61VWhT033357 for ; Mon, 6 Nov 2023 01:31:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A61VWw9033356 for toolchain@FreeBSD.org; Mon, 6 Nov 2023 01:31:32 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 274927] Toolchain fails on the __sync_val_compare_and_swap function without -march=native (port biology/seqwish) Date: Mon, 06 Nov 2023 01:31:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D274927 --- Comment #7 from Mark Millard --- https://clang.llvm.org/docs/UsersManual.html reports: QUOTE Several micro-architecture levels as specified by the x86-64 psABI are defi= ned. They are cumulative in the sense that features from previous levels are implicitly included in later levels. -march=3Dx86-64: CMOV, CMPXCHG8B, FPU, FXSR, MMX, FXSR, SCE, SSE, SSE2 -march=3Dx86-64-v2: (close to Nehalem) CMPXCHG16B, LAHF-SAHF, POPCNT, SSE3, SSE4.1, SSE4.2, SSSE3 -march=3Dx86-64-v3: (close to Haswell) AVX, AVX2, BMI1, BMI2, F16C, FMA, LZ= CNT, MOVBE, XSAVE -march=3Dx86-64-v4: AVX512F, AVX512BW, AVX512CD, AVX512DQ, AVX512VL END QUOTE CMPXCHG16B is the 128 bit (16 Byte) instruction for the lock-free operation in question, something -march=3Dx86-64 does not have. So it looks like the Makefile should use: -march=3Dx86-64-v2 if nothing newer than x86-64-v2 is needed. This would be better than -march-native as far as indicating the widest range of cpu micro-architectures possible. However, in general, consideration vs. -march=3Dx86-64-v3 vs. -march=3Dx86-64-v4 is appropriate since more may be needed. Some ports might need to add OPTION control over which to use of: -march=3Dx86-64-v2 -march=3Dx86-64-v3 -march=3Dx86-64-v4 --=20 You are receiving this mail because: You are the assignee for the bug.=