public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/golang] f43: Backport of popcnt for x86
Date: Tue, 20 Oct 2026 20:46:18 GMT	[thread overview]
Message-ID: <179252917820.1.16223650607259733268.rpms-golang-260b9167420c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/golang
            Branch : f43
            Commit : 260b9167420c1170b5a518255c905dbe5eda807b
            Author : Álex Sáez <asm@redhat.com>
            Date   : 2026-10-20T22:44:45+02:00
            Stats  : +12/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/golang/c/260b9167420c1170b5a518255c905dbe5eda807b?branch=f43

            Log:
            Backport of popcnt for x86

This should fixed the TestGoAMD64v1 failing test in 1.26.10

---
diff --git a/golang.spec b/golang.spec
index 478d3bd..45dd489 100644
--- a/golang.spec
+++ b/golang.spec
@@ -161,6 +161,8 @@ Patch5:         0005-Skip-TestCrashDumpsAllThreads.patch
 Patch8:         fix_cgo_panic-with-gcc15-in-368.patch
 # Related to https://github.com/golang/go/issues/74476
 Patch9:         skip_lsan_tests.patch
+# Backport https://github.com/golang/go/commit/45929774c3d5c084cc478afba63c77cf67a68bd7
+Patch10:        require-popcnt-for-gc-scan.patch
 
 # Having documentation separate was broken
 Obsoletes:      %{name}-docs < 1.1-4

diff --git a/require-popcnt-for-gc-scan.patch b/require-popcnt-for-gc-scan.patch
new file mode 100644
index 0000000..4d3b2bb
--- /dev/null
+++ b/require-popcnt-for-gc-scan.patch
@@ -0,0 +1,10 @@
+diff --git a/src/internal/runtime/gc/scan/scan_amd64.go b/src/internal/runtime/gc/scan/scan_amd64.go
+--- a/src/internal/runtime/gc/scan/scan_amd64.go
++++ b/src/internal/runtime/gc/scan/scan_amd64.go
+@@ -39,4 +39,5 @@ var avx512ScanPackedReqsMet = cpu.X86.HasAVX512VL &&
+ 	cpu.X86.HasGFNI &&
+ 	cpu.X86.HasAVX512BITALG &&
+ 	cpu.X86.HasAVX512DQ && // for kmovb, see #79871
+-	cpu.X86.HasAVX512VBMI
++	cpu.X86.HasAVX512VBMI &&
++	cpu.X86.HasPOPCNT

                 reply	other threads:[~2026-10-20 20:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179252917820.1.16223650607259733268.rpms-golang-260b9167420c@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox