You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/asm: add support for arm64 FEAT_MOPS instructions #79994
FEAT_MOPS (Memory Operations) provides CPY{P,M,E} and SET{P,M,E} instruction sequences for hardware-accelerated memory copy and set.
FEAT_MOPS is OPTIONAL from Armv8.7.
FEAT_MOPS is mandatory from Armv8.8+ and Armv9.3+.
This can speed up memory operations on recent Neoverse V3 cores, such as Azure Cobalt 200 and Amazon Graviton 5.
I have a work-in-progress implementation and am looking for hardware access to test. If you have access to recent ARM cores with FEAT_MOPS support, please reach out.
Tested this on the gotip-linux-arm64_c4ah72 perf builders and, unfortunately, no crashes (sigh). It's also not taking the MOPS paths. This Google Axion generation uses Neoverse V2 cores, which implement the Armv9.0 baseline, so at least I know the HWCAP2 detection is working. The saga continues.
Quick update: I was able to test the patch from CL 790322 on an AWS Graviton 5 VM, but FEAT_MOPS is not exposed there. I suspect it's being blocked by the hypervisor.
This feature has some performance degradation on early cores, which may be why it's disabled. Heard similar things from LLVM too. I'll have to wait for newer CPU revisions to retest this.
Activity
mauri870 commentedon Jun 13, 2026
cc @golang/arm
mauri870 commentedon Jun 13, 2026
@erifan do you happen to know if NVIDIA Grace supports FEAT_MOPS? Would love to get access to test on real hardware.
gopherbot commentedon Jun 13, 2026
Change https://go.dev/cl/790322 mentions this issue:
cmd/internal/obj/arm64,internal/cpu: add FEAT_MOPS assembler supportgabyhelp commentedon Jun 13, 2026
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Jun 13, 2026
Change https://go.dev/cl/790441 mentions this issue:
arm64/arm64asm: add FEAT_MOPS instruction decodingmauri870 commentedon Jun 19, 2026
Tested this on the
gotip-linux-arm64_c4ah72perf builders and, unfortunately, no crashes (sigh). It's also not taking the MOPS paths. This Google Axion generation uses Neoverse V2 cores, which implement the Armv9.0 baseline, so at least I know the HWCAP2 detection is working. The saga continues.mauri870 commentedon Sep 11, 2026
Quick update: I was able to test the patch from CL 790322 on an AWS Graviton 5 VM, but FEAT_MOPS is not exposed there. I suspect it's being blocked by the hypervisor.
This feature has some performance degradation on early cores, which may be why it's disabled. Heard similar things from LLVM too. I'll have to wait for newer CPU revisions to retest this.