---
title: "Arch-specific SIMD in Go"
description: "Go 1.27 extends the experimental architecture-specific SIMD API (simd/archsimd, enabled with GOEXPERIMENT=simd) from amd64 to arm64 NEON and wasm 128-bit SIMD."
url: "https://swe.quest/articles/arch-specific-simd-in-go-2992a831c4663686"
canonical: "https://go.dev/blog/archsimd"
source: "The Go Blog"
published: "2026-10-02"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 11
tags: ["go","performance","compilers","hardware","webassembly"]
---

# Arch-specific SIMD in Go

A post on [The Go Blog](https://swe.quest/sources/go.md), published 2026-10-02, 11 min read, Deep dive. Original: [https://go.dev/blog/archsimd](https://go.dev/blog/archsimd)

## Summary

Go 1.27 extends the experimental architecture-specific SIMD API (simd/archsimd, enabled with GOEXPERIMENT=simd) from amd64 to arm64 NEON and wasm 128-bit SIMD. The design uses typed vector structs, readable method names unified across architectures, opaque mask types that the compiler peepholes into masked instructions, and new zero-cost reinterpretation methods (ToBits, ReshapeToUint\<W\>s) that replace Go 1.26's As\<Type\> methods. Worked examples reverse bits with GFNI affine transforms and transpose an 8x8 matrix with AVX2 lane-grouped permutes. Practical advice: guard code with CPU feature checks, which avoid SIGILL and also enable fused AVX-512 lowering; write loop bounds as i \< len-n+1 so bounds checks are eliminated; and pass vectors as separate values rather than arrays or structs so they stay in registers.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Go](https://swe.quest/tags/go.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)

## Prerequisites

- SIMD intrinsics basics
- Go generics-free API conventions ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- x86 AVX/AVX-512 extensions
- Compiler bounds check elimination

## Keywords

archsimd, GOEXPERIMENT=simd, AVX-512, NEON, GFNI, Go 1.27, SVE

## Related posts

- [Platform-independent SIMD in Go](https://swe.quest/articles/platform-independent-simd-in-go-f8d408cca35d2358.md): The Go Blog · 2026-09-24 · Hard · 18 min read · Go, Performance engineering, Hardware, Compilers, API design
  Go 1.27 adds an experimental, size-agnostic \`simd\` package, loosely modeled on Highway for C++.
- [fearless\_simd v0.6 brings AVX-512 and ways to disable it](https://swe.quest/articles/fearless-simd-v0-6-brings-avx-512-and-ways-to-disable-it-dbb91beeb5d3bf00.md): Linebender · 2026-07-11 · Medium · 4 min read · Rust, Performance engineering, Hardware, Compilers
  fearless\_simd v0.6 adds AVX-512 support for all operations, including safe invocation of AVX-512 intrinsics through the kernel! macro.
- [fearless\_simd v0.7: 64-bit integers, improved generics, SSE2, and upcoming v1.0](https://swe.quest/articles/fearless-simd-v0-7-64-bit-integers-improved-generics-sse2-and-upcoming-v1-0-ff362065b8979b5e.md): Linebender · 2026-08-12 · Medium · 5 min read · Rust, Performance engineering, Hardware, Build systems
  fearless\_simd v0.7 adds u64/i64 vector types, completing integer and float type coverage, plus dynamic byte shuffles via swizzle\_dyn, wrapping/saturating widen-narrow conversions, and element shift/rotate helpers.
- [SIMD Matters](https://swe.quest/articles/simd-matters-f3febffdc470bd02.md): Box2D · 2024-08-19 · Hard · 8 min read · Performance engineering, Games, Algorithms, C & C++, Hardware
  Box2D 3.0 solves contact constraints with SIMD by using greedy graph coloring to group constraints so no body appears twice within a color.
- [From hand-tuned Go to self-optimizing code: Building BitsEvolve](https://swe.quest/articles/from-hand-tuned-go-to-self-optimizing-code-building-bitsevolve-65732e9f0f979e91.md): Datadog Engineering · 2025-09-18 · Medium · 17 min read · Performance engineering, Go, AI agents, Cost optimization, Compilers
  Datadog cut CPU in Go hot paths by removing compiler bounds checks in NormalizeTag (25% faster, 0.75% service CPU) and adding an ASCII fast path to NormalizeTagArbTagValue (90% faster, hundreds of thousands of dollars in projected annual savings), guided by production data showing nearly all inputs were ASCII.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
